Coder Social home page Coder Social logo

developermikitognoni / discord-meme-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 21 KB

Discord meme bot is a simple discord bot written in Javascript and optimized to run on Heroku or in docker, that sends one of your memes, every time is sent the command.

JavaScript 100.00%
memes discord-bot heroku bot javascrip nodejs discord-meme-bot

discord-meme-bot's Introduction

DISCORD MEME BOT

Discord meme bot is a simple discord bot written in Javascript and optimized to run on Heroku, that sends one of your memes, every time is sent the command.

HOW TO GET ON YOUR SERVER

HEROKU METHOD

  1. Fork the repository to your github account;

  2. Register on heroku and connect to you github account;

  3. In the heroku dashboard choose to deploy from the forked repository;

  4. Find a hosting location for your memes, it has to be something like http://example.com/folder/memename.jpg ;

    IMPORTANT: Your memes should be named like this: 1.jpg, 2.jpg, 3.jpg and so on

  5. In the heroku dashboard go to settings, choose reveal config vars, and set these theree config vars:

    • BOT_TOKEN Your DiscordBot API KEY;
    • IMG_HOST The image hosting address like http://example.com/folder/;
    • IMG_NUM The number of memes you uploaded in your hosted folder;
    • PREFIX The prefix is the text at the start of every message sent to this bot. This helps bot at undertanding which message to process. An example of prefix is b!;

HEROKU DYNOS SHOULD BE SETTED AS WORKER node bot.js

DOCKER METHOD

  1. Be sure Docker is installed;

  2. Find a hosting location for your memes, it has to be something like http://example.com/folder/memename.jpg ;

    IMPORTANT: Your memes should be named like this: 1.jpg, 2.jpg, 3.jpg and so on

  3. Run the command docker run --name DockermemeBOT -d -e BOT_TOKEN="Your DiscordBot API KEY" -e IMG_HOST="The image hosting address like http://example.com/folder/" -e IMG_NUM="The number of memes you uploaded in your hosted folder" -e PREFIX="The prefix is the text at the start of every message sent to this bot. This helps bot at undertanding which message to process. An example of prefix is b!" ghcr.io/developermikitognoni/dsmemebot:2.0-light

  4. Enjoy your brand new discord meme bot

IF YOU NEED HELP OR WANT TO CONTRIBUTE FEEL FREE TO CONTACT ME


Components I used in this project:

JavaScript Node.js Heroku Docker



Brought to you with ❤️ by Devmiki

Connect with me:

devmiki.tk Mikitognoni | Mail Mikitognoni | Telegram Mikitognoni | Twitter Mikitognoni | Instagram Mikitognoni | Medium

discord-meme-bot's People

Contributors

developermikitognoni avatar

Stargazers

 avatar  avatar

Watchers

 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.