-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: - Updated all anti-crash to latest in index.js - Updated README.md - Changed all REPO links to new org ones - Updated MongoDB connection solution - Added invite link on boot - Updated package.json - Added chalk for console.logs
- Loading branch information
Showing
12 changed files
with
99 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
DISCORD_TOKEN=<BOT TOKEN> | ||
PREFIX=<BOT PREFIX> | ||
PERMISSIONS=<BOT PERMISSIONS (Used for invite link)> | ||
EXPERIMENTAL=<yes/no> | ||
EXPERIMENTAL=<yes/no> | ||
MONGOOSESTRING=<MONGOOSE CONNECTION STRING> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
var figlet = require('figlet'); | ||
const chalk = require('chalk'); | ||
const client = require("../index"); | ||
|
||
client.on("ready", () => | ||
client.on("ready", async () => { | ||
|
||
|
||
|
||
figlet('ONLYTUNES', function(err, data) { | ||
if (err) { | ||
console.log('Something went wrong...'); | ||
console.dir(err); | ||
return; | ||
} | ||
console.log(data) | ||
}) | ||
await sleep(1000); | ||
console.log(chalk.green('===================================')) | ||
console.log('Welcome to the Simple Bot Template!\n This bot is from the OnlyTunesRadio repo found here: https://github.com/OnlyTunesRadio/bot-template\n We hope you enjoy using this Template!\n Let us know of any issues VIA the issues section on the REPO!'); | ||
const inviteURL = `https://discord.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=8&scope=bot%20applications.commands` | ||
console.log(chalk.green('===================================')) | ||
console.log(chalk.redBright('[WARNING] ') + `This link must only be used for your own server as it gives the bot full admin permissions!\n[Invite Link] ${inviteURL}`) | ||
console.log(chalk.green('===================================')) | ||
console.log(`✅ ${client.user.tag} is up and ready to go!`) | ||
); | ||
console.log(chalk.green('===================================')) | ||
|
||
async function sleep (ms) { | ||
return new Promise(resolve => setTimeout(resolve, ms)); | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters