Skip to content

TheCanterlonian/TicketBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicketBot

keeps track of support tickets made in Discord.
can only keep 999 tickets in record before it starts turning to mush.
requires dotnet runtime & SDK installed to run.
use "dotnet run" from inside the project folder to run the bot.

Token Commands

when the bot asks for a token, you can also enter some commands instead and it will tell the difference between them and an actual token.
List of Token Commands:
notYet - exits the program, this is used for debugging
read - read the token in the currently existing token file (will fuck up if there is no token file)
write - write a new token to the file (kinda broken at the moment, i suggest creating the token file manually)
Creating a token file manually: make a text file called "token.txt" in the project folder and put only the token in it, no whitespace, tabs, returns, newlines, feeds, nothing, just the token.

Bot Commands

while the bot is runing, any message sent in a discord channel it can see that starts with "!ticket " will be interpretted as a command by the bot. if whatever is typed after that doesn't match with anything in the list of commands, (including any extra whitespaces,) the command will return with a message stating "invalid command" and do nothing.
List of Discord Commands:
ping - returns "pong" (i think it's adorable, but it's useful to test the bot, just to see if it's online)
list - returns a list of all tickets currently in the ticket-listing file
open [subject line] - creates a new ticket with the subject line of the next command parameter
close [ticket number] - closes the ticket associated with the number given (if you find a bug with this, stop using it and let me know immediately on Discord!)
clean - permanently deletes the closed tickets from the file (if you don't keep things tidy, i will use this myself)