JS>> Aura>> 返回
项目作者: Aura-Discord-Bot

项目描述 :
Simple multi-purpose Discord bot made with TypeScript
高级语言: TypeScript
项目地址: git://github.com/Aura-Discord-Bot/Aura.git
创建时间: 2020-10-26T16:42:55Z
项目社区:https://github.com/Aura-Discord-Bot/Aura

开源协议:MIT License

下载


Aura - Simple, powerful Discord bot

Simple multi-purpose Discord bot made with TypeScript-> https://auramm.xyz

Dashboard: https://github.com/Aura-Discord-Bot/Aura-Dashboard

Aura Avatar

Codacy Badge

Config

config.json example:

  1. {
  2. "bot": {
  3. "token": "<your_bot_token>",
  4. "secret": "<your_client_secret>",
  5. "ownerId": "<discord_user_id>",
  6. "activity": "auramm.xyz",
  7. "id": "<discord_bot_id>"
  8. },
  9. "api": {
  10. "port": "3000",
  11. "url": "https://auramm.xyz/api",
  12. "stripeSecretKey": "<sk_test_...>",
  13. "stripeWebhookSecret": "<whsec_...>"
  14. },
  15. "guild": {
  16. "id": "<support_guild_id>",
  17. "premiumRoleId": "<premium_role_id>"
  18. },
  19. "lavalinkNodes": [
  20. {
  21. "host": "localhost",
  22. "port": 2333,
  23. "password": "youshallnotpass"
  24. }
  25. ],
  26. "dashboardURL": "https://auramm.xyz",
  27. "mongoURL": "mongodb://localhost/Aura"
  28. }

Redirect URIs

Redirects

Start the Bot

  • 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 or java -jar Lavalink.jar

Troubleshooting

  • Open an issue, if you find any bugs or have any suggestions etc.
  • You can also join the Aura Discord if you need extra support.

Debug with VSCode (Windows)

  • F5 -> start
  • Shift + F5 -> stop
  • Ctrl + Shift + B -> run build task
  • F9 -> toggle breakpoint
  • F10 -> step over
  • F11 -> step into
  • Shift + F11 -> step out

Debug Locally with Stripe

stripe listen --forward-to localhost:3000/stripe-webhook

This will allow you to get the config.api.stripeWebhookSecret.
Replace localhost:3000 with whatever you are using for the bot server.