ChanServ: Difference between revisions

From ChewWiki
Jump to navigation Jump to search
(chanserv)
 
(→�: add uwustats command)
Line 27: Line 27:
|-
|-
| <code>/leave</code> || Any || Leaves a community channel. This must be run inside the community channel you wish to leave.
| <code>/leave</code> || Any || Leaves a community channel. This must be run inside the community channel you wish to leave.
|-
| <code>/uwustats</code> || Any || Gathers the leaderboard of "uwus" in the #uwu channel.
|-
|-
| <code>/voice @user</code> || Half-op || Marks a user as voiced (+v).
| <code>/voice @user</code> || Half-op || Marks a user as voiced (+v).
Line 34: Line 36:
| <code>/kick [user] (reason)</code> || Half-op || Kicks a user from the server with an optional specified reason.
| <code>/kick [user] (reason)</code> || Half-op || Kicks a user from the server with an optional specified reason.
|-
|-
| <code>/topic [new topic] || Half-op || Changes a channel's topic.
| <code>/topic [new topic]</code> || Half-op || Changes a channel's topic.
|}
|}



Revision as of 15:28, 29 November 2021

This article covers the bot for the Rory Fanclub Discord Server. For the IRC service the name is based on, see ChanServ on Wikipedia

ChanServ is a Discord bot for the Rory Fanclub Discord server. Its code is open source on GitHub, and is programmed primarily by Chew.

Information

ChanServ is the main moderation and only admin bot on the server. Its commands, much like the server, are inspired by IRC. It utilizes Slash Commands, a recent addition to the Discord API, which means you run commands by typing / and all of the commands will show up. The slash command behavior is not unlike IRC; however, there are suggestions, which aren't present in most IRC clients.

Commands

ChanServ's commands are primarily based on IRC, in terms of arguments, command name, and permissions.

ChanServ commands
Command Minimum Role Permissions
/umode Any Returns a list of your "user modes."
/rank Any Much like /umode, but only shows your highest rank.
/randomcolor Any Allows a user to change their role color. It has a cooldown of 1 hour.
/listcommunities Any List communities for users to join. Also available in the #communities channel in the Information category.
/join #channel Any Joins a community channel.
/leave Any Leaves a community channel. This must be run inside the community channel you wish to leave.
/uwustats Any Gathers the leaderboard of "uwus" in the #uwu channel.
/voice @user Half-op Marks a user as voiced (+v).
/reason [case] [reason] Half-op Changes the reason for a specific Audit Log entry.
/kick [user] (reason) Half-op Kicks a user from the server with an optional specified reason.
/topic [new topic] Half-op Changes a channel's topic.

There are additional commands to promote someone to a given rank, such as /halfop, /op, /admin, and /owner. All of these require the rank directly above or higher to operate (/halfop requires Op or above, for instance. There is no /oper as a result.

History

ChanServ initially started as a bot written in Ruby using the discordrb API library and was initially private.[1] It was left private because the code contained the bot token.[2]

It was made public and was re-written in Java on September 29th, 2020.[3]

References

  1. "base files" by Chew on GitHub
  2. [1] Message in #news regarding the repository's visibility.
  3. "Rewrite files" by Chew on GitHub