Code Monkey home page Code Monkey logo

cygbot's Introduction

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.

cygbot's People

Contributors

cygnatus avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.