CodeRED's discord bot 🤖

Overview

CR-Astronaut-200

CodeRED Discord Bot 🤖

CodeRED is a 24 hours hackathon, organized by CougarCS, the largest computer science organization at the University of Houston. It's an event for people to come together and innovate by pushing their limits to create something amazing!

This is the offical CodeRED Discord Bot. The bot is built using Typescript and DiscordJS.


CircleCI GitHub issues GitHub last commit GitHub package.json dependency version (prod)

Development 🔨

  • Requirements

  • Installation

    1. Yarn to install packages
    2. Create an .env in the root (./) directory
      • You must have a Discord Developer account setup to obtain a bot token.
      • Developer mode must be enabled in your Discord Client to obtain your Guild and Client IDs.
      • Contents of the .env file:
    TOKEN = <Discord_Bot_Token>
    GUILD_ID = <Guild_ID>
    CLIENT_ID = <Owner_ID>
    
    1. You're good to go!
  • Build Scripts

    • Yarn start : Runs the code normally using ts-node.
    • Yarn dev : Starts the ts-node-dev watcher and recompiles + runs code whenever a change is made.
    • Yarn build : Compiles .TS files to .JS using TSC and puts them in ./dist
    • Yarn clean : Compiles .TS files cleanly and wipes all existing .JS files
  • Linting/Styling

    • This repo uses ESLint and Prettier to enforce linting and styling rules.
    • Yarn lint : Checks for any linting issues
    • Yarn lint:fix : Attempts to fix any autofixable linting issues
    • Yarn prettier : Checks for any styling issues
    • Yarn prettier:fix : Attempts to format all code to match style rules
    • We suggest using an ESLint and Prettier plugin for your respective editor to aid with development.
  • Structure

    • index.ts contains handler routing and login
    • ./commands contains individual commands
    • ./configs contains data storage/configuation
    • ./events contains handlers for different events
    • ./interfaces contains interfaces
    • ./utils contains utility files

Deployment 🚀

  • To deploy you'll first need to run Yarn build which builds the .JS files in ./dist
  • Secondly you'll need to navigate into ./dist and run node index.js

Contributing 🧩

  • Ideas

    • We want everyone to be able to help us in any way they can! Every idea is welcome, please open an issue describing what you have in mind first. We'll discuss your idea and we may add it to the bot! Feel free to also leave your thoughts on current ideas.
  • Bugs

    • Found a bug? Please let us know! Don't hesitate to write a bug report with as much information as possible!
    • Are you the exterminator type? Feel free to check out an existing bug report and see if you can find anything new and tell us what you've found.
Comments
  • Teams & check-in features

    Teams & check-in features

    What type of PR is this? (check applicable) 🚧

    • [X] ♻️ Refactor
    • [X] ✨ Feature
    • [X] 🐛 Bug Fix
    • [X] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥

    Add all of the team and check in features

    Related Issues 🩹

    Added to documentation? 📝

    • [ ] 📜 readme
    • [X] 🙅 no documentation needed

    Additional context 🗒️

    opened by mellophone 1
  • [Bug] Invalid Form Body error

    [Bug] Invalid Form Body error

    Describe the bug 🐛 Whenever you run commands on a bot that doesn't have a profile picture it'll return an invalid form error. This happens because the default Discord bot image will not return a URL and instead returns null.

    To Reproduce 📋

    1. Create a Discord bot with no icon
    2. Load up the bot using the created bot token
    3. Run any command.

    Expected behavior ✔️ The bot should properly send a response with the bot image in the footer.

    Screenshots 📸 image

    Additional context 🗒️ None

    bug 
    opened by Junnyyy 1
  • Ben's mega feature PR

    Ben's mega feature PR

    What type of PR is this? (check applicable) 🚧

    • [ ] ♻️ Refactor
    • [x] ✨ Feature
    • [X] 🐛 Bug Fix
    • [X] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥

    Fixed checkin & checkout, added createteam, leaveteam, roulette, invite, promote, purge, verify, DiscordService, and updated intents.

    Related Issues 🩹

    Added to documentation? 📝

    • [ ] 📜 readme
    • [X] 🙅 no documentation needed

    Additional context 🗒️

    opened by mellophone 0
  • Google sheets API service

    Google sheets API service

    Is your feature request related to a problem? Please describe. 🔥

    Create a class or service that lets us connect to the registration form and view information. Refer to the Applicant Registration form.

    Describe the solution/feature you'd like 🚧

    A utility class ex: applicantService() A function in the class findApplicant(email, discordid, etc.) that returns true or false

    Describe alternatives you've considered 🤔

    N/A

    Screenshots 📸

    N/A view @mellophone proof of concept implimentation.

    Additional context 🗒️

    N/A

    enhancement 
    opened by Junnyyy 0
  • Merge develop into main

    Merge develop into main

    What type of PR is this? (check applicable) 🚧

    • [ ] ♻️ Refactor
    • [ ] ✨ Feature
    • [ ] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [x] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Releases improvements, upgrades, and features from develop branch.

    Related Issues 🩹 N/A

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ None

    opened by Junnyyy 0
  • ✨♻️ DiscordJS V14 Upgrade

    ✨♻️ DiscordJS V14 Upgrade

    What type of PR is this? (check applicable) 🚧

    • [x] ♻️ Refactor
    • [x] ✨ Feature
    • [x] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Fixes error created by Command Interaction type. Refactored to DiscordJS v14 and updated interaction event to handle errors.

    Related Issues 🩹 N/A

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ Beware of Typescript error overriding on line 96 of purge.ts

    enhancement 
    opened by Junnyyy 0
  • Discord js v14 upgrade

    Discord js v14 upgrade

    What type of PR is this? (check applicable) 🚧

    • [x] ♻️ Refactor
    • [ ] ✨ Feature
    • [ ] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Refactored to DiscordJS v14 and updated interaction event to handle errors.

    Related Issues 🩹 N/A

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ Beware of Typescript error overriding on line 96 of purge.ts

    enhancement 
    opened by Junnyyy 0
  • Discord js v14 upgrade

    Discord js v14 upgrade

    What type of PR is this? (check applicable) 🚧

    • [x] ♻️ Refactor
    • [ ] ✨ Feature
    • [ ] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Refactored to DiscordJS v14

    Related Issues 🩹 N/A

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ Beware of Typescript error overriding on line 95 of purge.ts

    enhancement 
    opened by Junnyyy 0
  • Merge develop branch with main

    Merge develop branch with main

    What type of PR is this? (check applicable) 🚧

    • [ ] ♻️ Refactor
    • [ ] ✨ Feature
    • [ ] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [x] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Update the Production branch to include developed features.

    Related Issues 🩹 None

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ None

    enhancement 
    opened by Junnyyy 0
  • ✨♻️ Added Embeded types

    ✨♻️ Added Embeded types

    What type of PR is this? (check applicable) 🚧

    • [x] ♻️ Refactor
    • [x] ✨ Feature
    • [ ] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Updated createEmbeded() to now have general, success, error, and warn types. Every type besides general has a default which can be achieved by filling title with null or your own custom title. Examples:

    const returnMessage = success(null, "this shows success", client);
    const returnMessage = success("We did it!", "this shows success and We did it!", client);
    

    Good for color-coding what type of response for easy user readability.

    Refactored any code that utilized the previous createEmbeded() function.

    Related Issues 🩹 none

    Added to documentation? 📝

    • [ ] 📜 readme
    • [ ] 🙅 no documentation needed

    Additional context 🗒️ I will add documentation or make other developers aware.

    enhancement 
    opened by Junnyyy 0
  • 🚨 Fixed errors and prettier tests

    🚨 Fixed errors and prettier tests

    What type of PR is this? (check applicable) 🚧

    • [ ] ♻️ Refactor
    • [ ] ✨ Feature
    • [x] 🐛 Bug Fix
    • [ ] 👷 Optimization
    • [ ] 📝 Documentation Update
    • [ ] 🔖 Release
    • [ ] 🚩 Other

    Describe your PR request 🔥 Fixed an error in the help command causing failed build.

    Related Issues 🩹 none

    Added to documentation? 📝

    • [ ] 📜 readme
    • [x] 🙅 no documentation needed

    Additional context 🗒️ none

    bug 
    opened by Junnyyy 0
Owner
UH CodeRED
📣 Houston's Premier hackathon coming to you fall 2022!
UH CodeRED
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! ?? ?? Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

YMafalha 19 Nov 11, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! > heroku/nodejs > https://g

zeeone 27 Feb 9, 2022
⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

Crucian Crucian is my discord bot with simple structure based on discord.js Click Here to invite Crucian to your server Author Crucian © Apoo Authored

apoow3b 3 Jul 26, 2021
A multipurpose Discord-bot created using discord.js.

Flame A multipurpose Discord-bot with music, economy, utils, and also auto-moderation. Flame is a powerfull, multipurpose and fully modular Discord-bo

Flame 38 Nov 14, 2021
Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

null 4 Dec 3, 2022
OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

PrecisionEXTP 1 Jan 3, 2022
A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment.

hazel A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment. Features Music ― supporting YouTube, Spotify and So

yushi 27 Dec 31, 2022
Denky is a multipurpose Discord bot, build with Node.js, TypeScript and discord.js.

?? Denky Bot Denky is a brazilian Discord bot, build with Node.js, TypeScript and discord.js. ⚙️ How to Create a Discord application. Guide Install No

Davi Patricio 8 Apr 6, 2022
Sample discord bot using clashofclans.js and discord.js

Clash of Clans sample discord bot using NodeJs Introduction This sample bot project aims to help you get started with interacting Clash of Clans API u

Priyam 6 Dec 16, 2022
Denky is a multipurpose Discord bot used in +3000 servers. Built with Node.js, TypeScript and discord.js.

?? Denky Bot Denky is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. ⚙️ Self hosting ⚠️ Support will not be provided for self

Denky Labs 19 Dec 26, 2022
A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

Hirzi 13 Dec 24, 2022
A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands & Buttons. Make Giveaways and…

Giveaway - Discord Bot A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands. Make Giveaways and more..! Explore the d

Chethan Yadav 27 Dec 5, 2022