Coder Social home page Coder Social logo

cyber-discord-bot's Introduction

cyber-discord-bot

A Discord bot made for Psi Beta Rho. :)

Setup

  1. Install node and yarn.
  2. Download and copy .env.example as .env
  3. Run yarn install to install dependencies
  4. Either ask me for your own discord bot user OR Create your own discord bot application: https://discordjs.guide/preparations/setting-up-a-bot-application.html
  5. Invite your discord bot to our shared testing discord server. If you need admin, let me (Alec) know.
  6. Add the token from step 3 into the .env in the proper location. Make sure there are no extra spaces between the text and the equals sign!
  7. Replace GUILD_ID with the server id you are testing in, CLIENT_ID with the discord bot user id, and OWNER_ID with your user id (this is used solely for /eval). Getting IDs: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-
  8. Before making new changes, do git checkout -b BRANCHNAME where BRANCHNAME is a name for whatever feature you are working on.

Running

  1. If this is the first time you are running OR you changed the format of slash commands, refresh them by running yarn deploy
  2. Run yarn start to run the bot
  • Do NOT run multiple copies of a bot under a single bot token, otherwise weird issues may occur!

Getting ready to push/Making Pull Request

  1. Make commits as needed.
  2. git pull origin --rebase to make sure your code is up-to-date. If this is unsuccessful, you may need to manually resolve conflicts by editing files
  3. yarn fix to enforce coding formatting
  4. git add . && git commit the prettier change if any files changed
  5. git push origin BRANCHNAME to push to remote branch of new name
  6. Open Pull Request in Github website

cyber-discord-bot's People

Contributors

burturt avatar arc-blroth avatar tranbrandon1233 avatar bliutech 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.