Have you every thought "Dang, those Discord bots are so cool, we wish could make our own?" Probably not.... But we did!
Our creation, Long Mark, was developed during CutieHack 2020 and features a few fun commands that we made to help us learn Javascript. We started this morning by watching a freecodecamp turotial on Javascript and look where we are now...
Primarily, we used Discord.JS (as it is a Discord bot) as well as a few other fun APIs and libraries to create several fun and cool things you can do with your friends while stuck at home and vibing on Discord!
Long Mark was developed by four freshman: Nathan Melwani, Anthony Page, Angelika Bermudez, and Jason Guan.
- Install the latest version of NPM.
- Install the latest version of git.
- Unpack and install both of these.
- Restart your computer.
- Go to our Github Repository and find the Green button that says clone or download. Click it and select Download Zip.
- Extract the contents of the zip to a folder of your choosing. You will need to know the path to this file later.
- Open the config.json file in a text editor of your choosing, I suggest Notepad++.
- Place your token in the quotes. Example: "token here"
- Save your config.json file and close out of it.
- Open up a command prompt with Administrator permissions (In Windows 10, click the Cortana Search bar on the bottom left hand corner and type Command Prompt, right click on it and click Run as Administrator.
- Open the folder that the bot files were unzipped to. Double click the folder name in the upper bar and copy the file path.
- In the Command Prompt type cd and then paste in the file path. Note: You cannot paste a filepath using Control + V, you HAVE TO RIGHT CLICK AND SELECT PASTE.
- Type npm init -y
- Type npm install discord.js
- Type npm install node-fetch 16: Type node main.js
- The bot should now run! Once you see the message "Ready" then the bot is online!
- Advanced curse world filter. Mark will remind you about his Christian values whenever a naughty, naughty curse word is said in his chatroom.
General Commands | |
---|---|
+ping | Checks Bots Ping! |
+help | Shows the main commands the bot can use. |
+serverinvite | Generate an invite to this server! |
+ban | Bans a player from the server! |
+backwards | Spells a phrase backwards! |
+eval | Solves the math expression. If you like CTFs, there's a flag for you find here ;o |
+kick | Kicks a user. |
+clear | Nukes a specified amount of messages in a channel. |
+morse | Converts a string into morse code! |
+servername | Gets the servername. |
+choose | Chooses something for you... To study for the CS10A Midterm or to to CutieHack... |
+echo | Repeats something right back to you.. Useful for discord formatting. |
+prine | Prunes a channel |
Games/Fun | |
---|---|
+8ball @user | Ask the magic 8ball any question and get a response! |
+rps <"Rock, Paper, or Scissors"> | Rock, Paper, Scissors game you play with the bot. You must choose between rock, paper, and scissors to play against the bot! This MAY OR MAY NOT BE RIGGED!! |
+russian <@user> <#> | Play Russian Roulette with your friends! Use the command and tag all the friends you want to play with! Loser gets kicked ;) |
+dogspeak | Bork Bark! Translate your string into dogtalk! |
+pirate | Argg!! Translate your string into PIRATE SPEAK! |
+flip | Coin flip! |
+roll | Roll a 6-side Dice! |
+backwards | Prints the string backwards! |
+chicken | POSTS A PICTURE OF A CHICKEN |
+dog | Get a random image of a dog! |
+cat | Get a random image of a cat! |
+pokemon | Posts an image of a specified Pokemon! |