mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Solved #3
This commit is contained in:
parent
3fe3d396f2
commit
311ea160be
3 changed files with 15 additions and 11 deletions
|
|
@ -2,4 +2,9 @@ DISCORD_TOKEN=
|
|||
MONGO_TOKEN=
|
||||
GIPHY_TOKEN=
|
||||
TOPGG_TOKEN=
|
||||
RADIO=
|
||||
RADIO=
|
||||
SPOTIFY_CLIENT_ID=
|
||||
SPOTIFY_CLIENT_SECRET=
|
||||
LAVALINK_HOST=
|
||||
LAVALINK_PASSWORD=
|
||||
LAVALINK_PORT=
|
||||
10
src/bot.js
10
src/bot.js
|
|
@ -49,8 +49,8 @@ const client = new Discord.Client({
|
|||
});
|
||||
|
||||
|
||||
const clientID = "";
|
||||
const clientSecret = "";
|
||||
const clientID = process.env.SPOTIFY_CLIENT_ID;
|
||||
const clientSecret = process.env.SPOTIFY_CLIENT_SECRET;
|
||||
|
||||
// Lavalink client
|
||||
client.player = new Manager({
|
||||
|
|
@ -67,9 +67,9 @@ client.player = new Manager({
|
|||
],
|
||||
nodes: [
|
||||
{
|
||||
host: "",
|
||||
port: 2333,
|
||||
password: "",
|
||||
host: process.env.LAVALINK_HOST,
|
||||
port: parseInt(process.env.LAVALINK_PORT),
|
||||
password: process.env.LAVALINK_PASSWORD,
|
||||
},
|
||||
],
|
||||
send(id, payload) {
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ const manager = new Discord.ShardingManager('./src/bot.js', {
|
|||
token: process.env.DISCORD_TOKEN,
|
||||
respawn: true
|
||||
});
|
||||
|
||||
const { AutoPoster } = require('topgg-autoposter');
|
||||
const poster = AutoPoster(process.env.TOPGG_TOKEN, manager);
|
||||
|
||||
if (process.env.TOPGG_TOKEN) {
|
||||
const { AutoPoster } = require('topgg-autoposter');
|
||||
const poster = AutoPoster(process.env.TOPGG_TOKEN, manager);
|
||||
}
|
||||
console.clear();
|
||||
console.log(chalk.blue(chalk.bold(`System`)), (chalk.white(`>>`)), (chalk.green(`Starting up`)), (chalk.white(`...`)))
|
||||
console.log(`\u001b[0m`)
|
||||
|
|
@ -98,4 +98,3 @@ manager.on('shardCreate', shard => {
|
|||
|
||||
manager.spawn();
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue