Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AI
Config
Config_Examples
DataBase
DiscordBot
Helpers
Properties
SteamBot
.gitignore
App.config
Program.cs
README.md
SGMessageBot.csproj
SGMessageBot.sln
packages.config

README.md

# SGDiscordBot

Bot can currently be used to store server/user information in a database. Along with log messages. Config .json files go in a folder called Data in the same path as the .exe

Commands:

shutdown: Shuts the bot down. Can only be used by a user with a role in commandRoleIds in CredConfig.json.
ex. @bot shutdown

restart: restarts the bot. Can only be used by a user with a role in commandRoleIds in CredConfig.json.
ex. @bot shutdown

messagetrack: Will send a message when the server's message count is one below or above the given count. params: enabled, count, channel, message Can only be used by a user with a role in commandRoleIds in CredConfig.json.
ex: @bot messagetrack true 50000 #announcement "This is a message"

reloadmescount: reprocesses the mesCount column in usersinservers. Can only be used by a user with a role in commandRoleIds in CredConfig.json.

messagecount: Can get several message count statistics for the server.

Command Description
@bot messagecount Top message count on the server.
@bot messagecount [number] Top n message counts on the server.
@bot messagecount @user Will get a user's message count.
@bot messagecount @role Will get the message count for a role and it's top user.

reloadmessages: Will reload all the messages for the channel the messages was sent in. Or all on the server if all is passed in.
Does not overwrite messages already in the database.
Can be an expensive operation, only use if the bot has missed a significant amount of messages or when the bot is first added to server.
Can only be used by a user with a role in commandRoleIds in CredConfig.json.

Command Description
@bot reloadmessages [channel] Reloads messages for channel mentioned.
@bot reloadmessages Reloads messages for every channel on server.

emojicount:

Can get various emoji use statistics for the server.
Can only get custom emojis for the server.
Note this can be a slow operation on server's with a large message count.

Command Description
@bot emojicount Gets the top used emoji and top user for emoji.
@bot emojicount [number] Top n emoji counts.
@bot emojicount [emoji] Use count of specific emoji and its top user.
@bot emojicount [user] Get a user's most used emoji.
@bot emojicount [number] [user] Top n emoji counts for a specific user.

rolecounts: Will get the counts of users in roles for the server.
Use mentions is true/false and determines if the list will mention the roles or just give names.
Can only be used by a user with a role in commandRoleIds in CredConfig.json.

Command Description
@bot rolecounts [useMentions] Outputs list to channel command was used in.
@bot rolecounts [channel] [useMentions] Outputs list to given channel.

AI:

Command Description
@bot buildcorpus Rebuilds the corpus used for generating messages. (commandRoleIds)
@bot chat Generates a message in the channel it was used in.
You can’t perform that action at this time.