removed token :)
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
devConfig.json
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
const discord = require('discord.js')
|
const discord = require('discord.js')
|
||||||
const bot = require('../index')
|
const bot = require('../index')
|
||||||
const client = bot.client
|
const client = bot.client
|
||||||
const config = require("../config.json")
|
const config = bot.config
|
||||||
|
|
||||||
//=============================
|
//=============================
|
||||||
// NOT READY YET
|
// NOT READY YET
|
||||||
|
|||||||
+12
-25
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"bot_name":"Wumpus",
|
"bot_name":"Wumpus",
|
||||||
"main_color":"#fffff",
|
"main_color":"#fffff",
|
||||||
"server_id":"935983011281903676",
|
"server_id":"server id (for slash cmds)",
|
||||||
"auth_token":"OTU4MjkwNjExMzMxNTM4OTc1.YkLLrQ.J9yfO7LgXplNahXv7xQNNvKG6fY",
|
"auth_token":"auth token",
|
||||||
"main_adminroles":["936153662668034058"],
|
"main_adminroles":["discord role id"],
|
||||||
"prefix":"!ticket ",
|
"prefix":"!ticket ",
|
||||||
"logs":true,
|
"logs":true,
|
||||||
"languagefile":"english.json (currently not working)",
|
"languagefile":"english.json (currently not working)",
|
||||||
@@ -16,16 +16,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"system":{
|
"system":{
|
||||||
"ticket_channel":"968899402020306994",
|
"ticket_channel":"channel id",
|
||||||
"max_allowed_tickets":3,
|
"max_allowed_tickets":3,
|
||||||
"enable_DM_Messages":true,
|
"enable_DM_Messages":true,
|
||||||
|
|
||||||
"has@everyoneaccess":false,
|
"has@everyoneaccess":false,
|
||||||
"member_role":"936153574650544180",
|
"member_role":"member role (doesn't have access to tickets)",
|
||||||
|
|
||||||
"enable_transcript":true,
|
"enable_transcript":false,
|
||||||
"enable_DM_transcript":true,
|
"enable_DM_transcript":false,
|
||||||
"transcript_channel":"968899606912061490"
|
"transcript_channel":"channel id"
|
||||||
},
|
},
|
||||||
|
|
||||||
"options":[
|
"options":[
|
||||||
@@ -38,9 +38,9 @@
|
|||||||
"type":"ticket",
|
"type":"ticket",
|
||||||
|
|
||||||
"color":"gray",
|
"color":"gray",
|
||||||
"adminroles":["936153350704091167"],
|
"adminroles":["role id"],
|
||||||
"channelprefix":"question-",
|
"channelprefix":"question-",
|
||||||
"category":"935983011281903678",
|
"category":"category id",
|
||||||
"message":"You created a ticket!",
|
"message":"You created a ticket!",
|
||||||
"enableDMMessage":true
|
"enableDMMessage":true
|
||||||
|
|
||||||
@@ -54,9 +54,9 @@
|
|||||||
"type":"ticket",
|
"type":"ticket",
|
||||||
|
|
||||||
"color":"green",
|
"color":"green",
|
||||||
"adminroles":["936153350704091167"],
|
"adminroles":["role id"],
|
||||||
"channelprefix":"apply-",
|
"channelprefix":"apply-",
|
||||||
"category":"935983011281903678",
|
"category":"category id",
|
||||||
"message":"You created a ticket!",
|
"message":"You created a ticket!",
|
||||||
"enableDMMessage":true
|
"enableDMMessage":true
|
||||||
|
|
||||||
@@ -76,19 +76,6 @@
|
|||||||
"options":["general","apply"],
|
"options":["general","apply"],
|
||||||
"enableTicketExplaination":true,
|
"enableTicketExplaination":true,
|
||||||
"enableMaxTicketsWarning":true
|
"enableMaxTicketsWarning":true
|
||||||
},
|
|
||||||
{
|
|
||||||
"id":"5",
|
|
||||||
"name":"sodfjiqdosmifj",
|
|
||||||
"description":"Youoidjfddiddjfmqoisdjf so customize all the embeds now!",
|
|
||||||
"enableFooter":true,
|
|
||||||
"footer":"Open Tiiiieakpeak",
|
|
||||||
"enableThumbnail":false,
|
|
||||||
"thumbnail":"https://www.example.com/catmemes/cat.png",
|
|
||||||
"color":"#0075e9",
|
|
||||||
"options":["apply"],
|
|
||||||
"enableTicketExplaination":true,
|
|
||||||
"enableMaxTicketsWarning":true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,17 @@
|
|||||||
const discord = require('discord.js')
|
const discord = require('discord.js')
|
||||||
const config = require('./config.json')
|
|
||||||
const intents = discord.Intents
|
const intents = discord.Intents
|
||||||
const client = new discord.Client({intents:[intents.FLAGS.GUILDS,intents.FLAGS.GUILD_MESSAGES,intents.FLAGS.GUILD_MEMBERS],partials:["CHANNEL"]})
|
const client = new discord.Client({intents:[intents.FLAGS.GUILDS,intents.FLAGS.GUILD_MESSAGES,intents.FLAGS.GUILD_MEMBERS],partials:["CHANNEL"]})
|
||||||
exports.client = client
|
exports.client = client
|
||||||
|
|
||||||
client.setMaxListeners(20)
|
client.setMaxListeners(20)
|
||||||
|
|
||||||
|
//change to FALSE on release
|
||||||
|
const isDev = true
|
||||||
|
//!!!!!!!!!!!
|
||||||
|
|
||||||
|
if (isDev){const config = require('./devConfig.json')}else{const config = require('./config.json')}
|
||||||
|
exports.config = config
|
||||||
|
|
||||||
client.on('ready',async () => {
|
client.on('ready',async () => {
|
||||||
const chalk = await (await import("chalk")).default
|
const chalk = await (await import("chalk")).default
|
||||||
if (process.argv[2] != "slash"){
|
if (process.argv[2] != "slash"){
|
||||||
|
|||||||
@@ -1,59 +0,0 @@
|
|||||||
{
|
|
||||||
"bot_name":"Wumpus",
|
|
||||||
"main_color":"#fffff",
|
|
||||||
"server_id":"the server id (for slash commands)",
|
|
||||||
"auth_token":"the bot's auth token",
|
|
||||||
"main_adminroles":["the id's from admin roles"],
|
|
||||||
"prefix":"!",
|
|
||||||
"logs":true,
|
|
||||||
"languagefile":"english.json (currently not working)",
|
|
||||||
|
|
||||||
"credits":true,
|
|
||||||
"status":{
|
|
||||||
"enabled":true,
|
|
||||||
"type":"PLAYING | LISTENING | WATCHING | CUSTOM",
|
|
||||||
"text":"!ticket"
|
|
||||||
},
|
|
||||||
|
|
||||||
"system":{
|
|
||||||
"ticket_channel":"id of the channel with the !ticket msg",
|
|
||||||
"max_allowed_tickets":5,
|
|
||||||
"enable_DM_Messages":true,
|
|
||||||
|
|
||||||
"has@everyoneaccess":false,
|
|
||||||
"member_role":"this role doesn't have access to tickets",
|
|
||||||
|
|
||||||
"enable_transcript":false,
|
|
||||||
"enable_DM_transcript":false,
|
|
||||||
"transcript_channel":"the channel for transcripts"
|
|
||||||
},
|
|
||||||
|
|
||||||
"options":[
|
|
||||||
{
|
|
||||||
"id":"ticket1",
|
|
||||||
"name":"Test Ticket",
|
|
||||||
"description":"Create a general ticket.",
|
|
||||||
"icon":"🎫",
|
|
||||||
"label":"i'm a ticket button",
|
|
||||||
"type":"ticket",
|
|
||||||
|
|
||||||
"color":"red|green|blue|gray|none",
|
|
||||||
"adminroles":["role id array"],
|
|
||||||
"channelprefix":"support-",
|
|
||||||
"category":"discord category id",
|
|
||||||
"message":"this is send in DM",
|
|
||||||
"enableDMMessage":true
|
|
||||||
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
"messages":[
|
|
||||||
{
|
|
||||||
"id":"1",
|
|
||||||
"name":"Choose Your Ticket",
|
|
||||||
"description":"You can click one of the buttons below!",
|
|
||||||
"color":"#ffffff",
|
|
||||||
"options":["ticket1","ticket2"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user