Code Monkey home page Code Monkey logo

the-club-discord-bot's Introduction

The Club - Discord Bot

Build In Contributors Live version
Node.js/Discord API @philip-hub @MaybeDuck Clone and run with continous server

Robot

The Club - Discord Bot

The Club is a discord bot initially made by @philip and maintained by Memphis Hackclub. This is a open source bot that you can add to your hackclub, student club, or any Discord server. The setup instructions are below.

Requirements

• Discord API Token (get from Discord Developers)
• Moment JS for the time command (install instructions)
• A continously hosted node.js server (Replit Pro works great)

Setup

1. Clone the Gihub repository (click here) on Replit.com with Replit Pro and in your cloned replit settings check always on. The bot would work with Replit's free plan, but it will turn off after 30 minutes or so because Replit's free plan does not allow continous running of projects. After it turns off you can restart it though.


2. Go to the Discord Developers Portal and create a new application and then on the panel on the right create a bot. Copy the bot token. Use control (or Command) F in the index.js file inside the Replit editor and find the line " client.login("Your_Bot_Token")" and this line is likely the last line. Delete the "Your_Bot_Token", Put down a set of quotes, and inside the quotes paste your token.

3. On your Discord Developer Console find your Client ID in OAuth2 and copy it. Replace "Replace_Me" in this link and then copy the link to your browser add the bot to your server (that you are an admin of).


4. Install and Add Moment JS with NPM and Yarn for the time command to work. The time is by default set to CST, but this can be changed on line 192 in index.js.

5. Us the !socials command and follow all of Memphis Hackclubs accounts and if you are a student who enjoys computer science and your engineering use the !about command and join [Memphis Hackclub](http://discord.memphishack.com) - We would love to have you! Edit your replit as you wish

Customize

To change the next meeting time, change line 22 and 56 in next-meeting.js and also change line 59 in index.js. These lines need to be changed to the number of your desired weekly meeting day with 0 being Sunday and 6 being Saturday. For the next meeting command, you may also need to change the hours varible in lines 57 and 23 in next-meeting.js to the ending time of your meeting in UTC. You can change message content and gifs where you see fit. Change the commands and times to your liking and your all set for any questions on setup or bug fixes leave an issue or contact us below.

List of Built in Commands

!next-meeting When the next meeting is

!about For new Hackclubers to learn about the club

!learn-code An intro to learning code

!socials Follow our socials

!coc See our code of conduct

!global-events Fun Global Hackclub Events

!hack Find hackothons happening that you can join!

!slack Learn about Global Hackclub's Slack

!help This command to display the doc for the command

!fix To go create an issue or pr for the bot on Github

Contact

Discord
[email protected]
Main Dev: [email protected]


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.