DoggoBotLol / SourceCode

A cool multi purpose discord bot with commands for Fun, Moderation, Utility, Image and Animals !!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doggo

A cool multi purpose discord bot with commands for Fun, Moderation, Utility, Image and Animals also with owner only commands !!

Add It | Join Our Discord

DiscordBanner

LOC

How to setup

Creating a Bot and adding to your server

◙ Go to Discord Developer Portal by clicking here

◙ Click on to New Application and then name your application

◙ Selct the application you will see bot just under OAuth2 select that

◙ Press Add Bot

◙ Then go to OAuth2 to get the bot's invite link

◙ Under scopes you'll see bot click that and under you see Bot Permissions select the permissions

◙ Copy the invite link which is generated on the Scopes

◙ Go to bot tab then you'll see TOKEN click copy

◙ Make sure you turn on both the intends in your you'll find that in that bot category !!

And now you got the token !!!

Configuring

Make a .env file and then:

TOKEN=Replace with your bot's token that I just explained how to obtain
YT_KEY=YouTube API Key for Youtube Command
IMBD_KEY=IMBD api key for the Movie Command
GOOGLE_KEY=The Goole api search engine key for Google Command
ENGINE_ID=The search engine ID for Google Command

Search GOOGLE_KEY & ENGINE_ID can be obtained from here, YT_KEY from here and IMDB_KEY from here

Do not put any commas or anything on .env file's value !!

Go to config.json and then:

{
    "Prefix": "The prefix that you need for your bot",
    "Owner": "You ID",
    "Invite": "You bot's invite link that we just explained how to obtain",
    "Server": "Your bot's support server"
}

Channel Setup

go to channels.json

{
    "ServerLogs": "ID of channel that you wann receive the bot's server logs",
    "Feeback": "ID of the channel that you wanna get the feedback of the bot",
    "Report": "Id of the channel that you wanna get the reports of the bot",
    "Suggestion": "ID of the channel that you wanna get the suggestions of the bot"
}

If you need to change the emojis go to emoji.json and change it I recommend the value to be same as it is

Starting the Bot

Things that are required

Node.js

Git

Discord

Visual Studio Code

◙ Then first to install the packages open a terminal in visual studio code type npm install

terminal

◙ Then after the packages and intalled and things are been configured in the config.json

◙ Go to the terminal type node index.js

terminal2

◙ After a few seconds (well maybe more all according to you network) you'll see <your bot's user> is now connected to Discord

terminal3

And that's for the self hosting

About

A cool multi purpose discord bot with commands for Fun, Moderation, Utility, Image and Animals !!

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.9%Language:Shell 0.0%Language:Batchfile 0.0%