-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.py
64 lines (46 loc) · 5.79 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#--------Ticket-Bot Config File--------#
#Created by WebTheDev#
#PLACE THE TOKEN FOR THE BOT IN THE TOKEN.JSON FILE!!!!#
import json
#Main Config:#
botStatusType = '' #Bot Status Type (Ex. Playing, Watching, Listening, or Streaming)
botStatusMessage = '' #The message that is shown on the bots activity
guildID = 0000000000000000 #ID of the Guild the the bot is running in
ticketLogsChannelID = 00000000000000 #ID of the Channel to send system logs to
ticketTranscriptChannelID = 0000000000000000000 #ID of the Channel to send ticket transcripts to
databaseName = 'tickets.db' #Leave set to default value unless if you want to use a different database name
debugLogSendID = 000000000000000 #ID of the Bot Owner to send debug information to
#Ticket Creation/Options Config:#
IDOfChannelToSendTicketCreationEmbed = 000000000000000 #ID of the Channel to send the Create a ticket embed to
IDofMessageForTicketCreation = 00000000000000000 #This is auto-adjusted, leave set to 00000000000000000
activeTicketsCategoryID = 000000000000000000000 #ID of the active tickets category
onHoldTicketsCategoryID = 00000000000000 #ID of the onhold tickets category
archivedTicketsCategoryID = 000000000000000000000 #ID of the archived tickets category
OptionsDict = {
"Option 1": ("Sales 💲", "sales", "Create a sales related ticket."), #This is the ticket options dictionary. It defines the different types of tickets that users can create.
"Option 2": ("Support ❓", "support", "Create a support related ticket."), #A ticket option definition should look something like this:
"Option 3": ("Report ✋", "staff", "Create a ticket to speak with a member of staff.") #"Option #": ("Title of Option", "Type of Option", "Description of Option")
} #Add a comma after every option definition except for the last one.
#If you only have one option then no comma is needed.
channelPerms = { #This is the ticket channel perms dictionary.
"sales": (000000000000000000000), #This dictionary defines what roles will have access to each type of Ticket Channel
"support": (000000000000000000000 , 000000000000000000000), #Each type can support multiple role IDS
"staff": (000000000000000000000 , 000000000000000000000) #Each entry into the definition should look something like this:
} #"Type of Option":(ROLEID1, ROLEID2)
#Add a comma after every option definition except for the last one.
#If you only have one option then no comma is needed.
#IMPORTANT: MAKE SURE THAT THE TYPE OF OPTION IS THE SAME AS THE TYPE OF OPTION THAT WAS
#DEFINED IN THE TICKET OPTIONS DEFINITION
#IF NOT, PERMISSIONS WILL NOT BE SET CORRECTLY AND THE BOT WILL NOT WORK RIGHT.
ticketTypeAllowedToCreatePrivateChannels = "staff" #Set this to be the type of option (roles) as defined in the ticket channel perms dictionary that can use the /create command.
multipleTicketsAllowed = False #Set this to True if you would like members to be able to have multiple tickets open at once (otherwise set to False).
dmTicketCopies = True #Set this to True if you would like the bot to dm Ticket Creators transcript copies of their ticket.
#Embed Config:#
footerOfEmbeds = '' #Set a custom embed footer of all embedded messages here!
embedColor = 0xffffff #Set a custom hex color code for all embeds! Make sure to keep the 0x!
def get_token():
tokenFile = open("./token.json") #This definition pulls the token from the token.json file
data = json.loads(tokenFile.read()) #Make sure to put your token in the token.json file where it says "PLACETOKENHERE"!
return (data['BotToken'])
firstRun = True #This is auto-adjusted, leave set to True on first bot start (unless if you are upgrading to a newer version of the bot, then set to False)
#Please create a new issue on github if you are having issues with using the bot or find any bugs!