GithubHelp home page GithubHelp logo

mr1bitl8r / spookybot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from start-again/spookybot

0.0 0.0 0.0 1.18 MB

๐ŸŽƒ A spooky Discord bot

License: MIT License

JavaScript 99.34% Makefile 0.66%

spookybot's Introduction

SpookyBot

๐ŸŽƒ A spooky Discord bot

release issues stars forks

This project is convenient for people who want to get into open source and contribute to different projects especially during the Hacktoberfest.

Don't hesitate to ask me for help on my Discord server, I would help you with great pleasure!

๐Ÿค– Add the bot on your server

You just need to click on this link and validate the form without changing any permission.

๐ŸŒ Adding a language

You can add languages to the robot so that it is translated and accessible to everyone!

To do this, nothing could be simpler, just copy the file ./app/lang/en.js then rename it following the ISO 639-1 nomenclature. Then you just need to modify the file as you wish. For the translation to be set up on the robot, do not hesitate to open a pull request by following this guide.

To react to a word, you need two elements in the translation file: the word and the emoji with which it will react.

{
  "name": "halloween",
  "emoji": "๐ŸŽƒ"
}

You can see that the emoji element is an emoji, but you can also use a custom emoji. For that, I strongly advise you to read this guide.

๐Ÿ’ป Testing locally

  1. Create a bot on the Discord developer portal,
  2. Create a webhook on your own discord server by following this tutorial,
  3. Copy the ./app/config/config.example.json from the project to ./app/config/config.json and fill in the gaps with the information from the bot and the webhook. The first token is on the bot page accessed from the side of the Discord Developer Portal, and the webook information is found on the page when you navigate to the webhook url,
  4. Invite your dev bot to your server by following this url, replacing the client id with your bot's client id (found on it's general information page), and the permissions with the Permission Integer created in the Developer Portal as you select permissions for your bot,
  5. Once these steps are setup, simply run make startup_dev from the terminal in the root directory of the repo, 5.1 If you want to install node modules you could just add it into your local package.json and run the make build_dev_image after that you need to recreate the container.
  6. Test the bot is connected by running <your-prefix>help to get a list of commands, and then initialize the DB by running <your-prefix>emitgc. It should then respond with "Join with <#> users,
  7. Test that the bot reacts to comments by typing one of the words in lang/<your-lang>.js. The bot should respond with an emoji!

๐Ÿ‘ค Author

LucasAlt

๐Ÿ™ Thanks

๐Ÿค Contributing

Before contributing to this project, make sure you have read the contribution guidelines!

  1. Fork it (https://github.com/LucasCtrl/spookyBot/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Show your support

Give a โญ๏ธ if you like this project!

Buy Me a Coffee at ko-fi.com

๐Ÿ“ License

This project is open source and available under the MIT

spookybot's People

Contributors

lucasctrl avatar mr1bitl8r avatar illusi0nary avatar hannesfant avatar marc2332 avatar matteoauger avatar pervolarakis avatar mralanlee avatar mgomez08 avatar olvrmei avatar mjyao avatar carolstran avatar damn-dvlpr 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.