Highly experimental message interactions
This commit is contained in:
parent
b8793dae0f
commit
be405d3eed
9 changed files with 491 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
// @ts-check
|
||||
|
||||
const config = require("./config")
|
||||
const token = config.discordToken
|
||||
const id = Buffer.from(token.split(".")[0], "base64").toString()
|
||||
|
||||
function addbot() {
|
||||
const token = config.discordToken
|
||||
const id = Buffer.from(token.split(".")[0], "base64")
|
||||
return `Open this link to add the bot to a Discord server:\nhttps://discord.com/oauth2/authorize?client_id=${id}&scope=bot&permissions=1610883072 `
|
||||
}
|
||||
|
||||
|
@ -12,4 +12,5 @@ if (process.argv.find(a => a.endsWith("addbot") || a.endsWith("addbot.js"))) {
|
|||
console.log(addbot())
|
||||
}
|
||||
|
||||
module.exports.id = id
|
||||
module.exports.addbot = addbot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue