andrijajocic / voidbot-v2

Discord bot for the Void Linux server, made using Discord.js.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

example config usage #1

Open UtopicUnicorns opened 4 years ago

UtopicUnicorns commented 4 years ago

AnyFile.js `const {

prefix,

token,

yandex,

hints

} = require('./config.json'); ` config.json

`{

"prefix": "!",

"token": "TOKEN/KEY", 

"yandex": "TOKEN/KEY",

"youtubekey": "TOKEN/KEY",

"hints": ["You can use *mv* to rename a file trough your terminal.\nmv old-file-name new-file-name",

     "Linux has a photoshop clone that's free.\nsudo apt install gimp",

     "You can get a readable machine specification output with Neofetch!\nsudo apt install neofetch",

     "To edit sound files you can use Audacity.\nsudo apt install audacity",

     "If after instalation your music files won't play use this command in your terminal:\nsudo apt-get install mint-meta-codecs",

     "Do not forget to make regular backups/snapshots of your system!",

     "You can update your system trough the terminal too!\nsudo apt update && sudo apt upgrade"]

} `

andrijajocic commented 4 years ago

will definitely look into this. how would a discord server admin change the prefix for commands with this format?

UtopicUnicorns commented 4 years ago

either by replacing the full conf where prefix = {args} or replacing the line itself