Skip to content

cygnatus/cygbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cygbot

All-purpose Discord bot.

Requirements

  • A Discord account
  • Permission to add accounts to a server, or your own server

Setup

Right now, I've only allowed the bot to let me invite it, but this is how it'd work if I made the bot public in the app settings:

  1. Invite bot using this invitation link.
  2. Make sure the bot is online.
    • If not, something that wasn't your fault bugged out.

If it's working, you should see "Ready!" in the Glitch logs.

DIY bot

  1. Remix the project
  2. Register a Discord app
  3. Fill out the basics and ignore the redirect stuff
  4. Click Create a Bot User
  5. Copy your bot token, not your client secret, and paste it into your .env
  6. Your bot's invitation link is https://discordapp.com/oauth2/authorize?&client_id={{CLIENT_ID}}&scope=bot&permissions=0

Customization

  • .env
    • Use your own client token
  • server.js
    • Change the trigger command(s)
    • Change the bot reply
  • watch.json
    • Include or exclude more files, file types or folders
    • Change update rate (throttle)

Resources

Troubleshooting

My bot is offline

It's probably asleep. Try waking it either by

  • Typing a command in your server
  • Updating some code in your Glitch project
    • Remember to check the logs
  • Visiting its glitch.me page

Also check whether the Discord invitation link still works.

Check out "Hosting a Bot on Glitch.com" linked above in Resources for more on keeping your sleepy bot awake.

The tricky thing about hosted bots is finding the sweet spot between poking them enough to stay awake and overworking them to the point of exhaustion.

Be nice to your bots.

Releases

No releases published

Packages

No packages published