Code Monkey home page Code Monkey logo

eobard-thawne's Introduction

Update: I have abandoned this project, it will get no more updates, the code will still work however. I plan on making a new bot completely from scratch that would include more features and better functionality

Eobard Thawne

A simple multipurpose discord bot built in Discord.JS V14.


Installation:

First of all, clone the repository into a directory by doing git clone https://github.com/TheCoderSimp/Eobard-Thawne.git . and run npm install

After everything is installed, continue with the following steps



Rename example.config.json to config.json. This is what it should look like

{
    "token": "",
    "clientId": "",
    "guildId": "",
    "botId": "",
    "tenorId": "",    
    "verifyRole": "", 
    "mongo": "",
    "openAIKey": "",
    "memeAPI": "",
}

Fill out all the requirements



To Fill out the mongo in the json, do the following steps

Go to the MongoDB website and make a account

After doing so, make a new cluster. Make a new username and a password as well.

After making a cluster, username and password, go to Database and click on Connect. Then click on the 2nd option, Connect your application to your cluster using MongoDB's native drivers.

Copy the connection string and replace the <password> section of the string with the password you used in the cluster earlier

Finally paste it into the config.json and it should be all ready to go



To fill out the openAIKey in the json, do the following steps

Go to the OpenAI website and make an account

Then click on the top right corner and click on View API Keys on the dropdown

Click on Create a new secret key

Copy the key and paste it



To Fill out the memeAPI in the json, do the following steps

Go to #bot_commands channel and type in m!token

A bot will dm you the token

Copy and paste it into the config.json


Optional Commands

The gif and the verify commands are optional. If you wish to use them, follow the instructions.



Verify Command

How is this command works that every time its executed, it checks if a targeted user has a certain role or not. If he does, all good, but if he doesn't, it gives the role to the user. This is ideally used to verify new users into the server.

To use this command, turn on developer mode on discord and get the id of the role of your wish. Then in config.json add the role id.

{
    "token": "",
    "clientId": "",
    "guildId": "",
    "tenorId": "",
    "verifyRole": "" //Add the role id here
}

Gif Command

This is a very simple command, it will return a gif whenever executed. The gif is random by default but the user can specify a category.

Firstly, go to the tenor docs to make an API key. Click here

Make sure you're logged in with your google account and click on Get a Tenor API Key

Click on Create a new project and name your project. It can take some time to load. When its done, click on Show Key and copy it. Dont share this with other people.

Now just go to config.json and add the API key.

{
    "token": "",
    "clientId": "",
    "guildId": "",
    "tenorId": "", //Add tenor id here
    "verifyRole": "" 
}

eobard-thawne's People

Contributors

jagritparakh avatar

Stargazers

Anjishnu Sengupta 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.