Simple multi-purpose Discord bot made with TypeScript-> https://2pg.xyz
Dashboard: https://github.com/theADAMJR/2PG-Dashboard
config.json
example:
{
"bot": {
"token": "yourBotToken",
"secret": "yourClientSecret",
"ownerId": "",
"activity": "2PG.xyz",
"id": "discordBotId"
},
"api": {
"port": "3000",
"url": "https://2pg.xyz/api",
"stripeSecretKey": "sk_test_..."
},
"guild": {
"id": "599596068145201152",
"premiumRoleId": "598565371162656788"
},
"dashboardURL": "https://2pg.xyz",
"mongoURL": "mongodb://localhost/2PG"
}
npm start
to start the bot, and Lavalink- Remember to have a local MongoDB database running
mongod
- Have Lavalink.jar running -
npm run start:music
orjava -jar Lavalink.jar
- Open an issue, if you find any bugs or have any suggestions etc.
- You can also join the 2PG Discord if you need extra support.
F5
-> startShift + F5
-> stopCtrl + Shift + B
-> run build taskF9
-> toggle breakpointF10
-> step overF11
-> step intoShift + F11
-> step out