a8ffc7d5b4
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.13.8 to 5.13.9. - [Release notes](https://github.com/Automattic/mongoose/releases) - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md) - [Commits](https://github.com/Automattic/mongoose/compare/5.13.8...5.13.9) --- updated-dependencies: - dependency-name: mongoose dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
cat | ||
command | ||
commands | ||
events | ||
models | ||
util | ||
.env.example | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.jshintrc | ||
.replit | ||
app.js | ||
app.json | ||
bot.js | ||
CODE_OF_CONDUCT.md | ||
config.json | ||
CONTRIBUTING.md | ||
index.js | ||
inlinereply.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
Procfile | ||
README.md |
CATH.EXE
This is a Bot Template based on Cath.exe, This templated does not conatain any data from Project Lighthouse.
For Call of duty mobile stats, Please invite the main instance using the INVITE ME badge.
Cath.exe is a Multipurpose Discord Bot with many features that include but are not limited to Moderation, Music and Economy. The Call of Duty Stats are courtesy of Project Lighthouse by Path.exe.
If you like this bot, feel free to Star and fork this repository.
Build with:
Deployment
Deploy Online
Deploy Locally
Prerequisite
Download all these programs on your local machine by clicking on the badge & following the standard installing procedure. You can use any IDE but we recommand VS Code.
Step by Step Walkthrough
- Clone this repository
git clone https://github.com/night0721/cath.exe
-
Rename the
.env.example
➚ file into.env
. -
Create an application from Discord Developer's Portal then copy these things into the
.env
file.
- Bot Token (TOKEN)
- Application ID (CLIENT_ID)
- Client Secret (CLIENT_SECRET)
- Bot Token (TOKEN)
-
To view the logs, Create 5 Channels & 5 Webhooks in a Discord Server corresponding to these logs.
- Server Log (Log new Server Added/Premium Server)
- Error Log (Log Unhandled Rejection Error)
- Ready Log (Log when bot online)
- Command Log (Log command usage)
- DM Log (Log when someone send DM to Bot)
You can also just use one Channel & one Webhook for everything but it will be really inconvenient.
- Server Log (Log new Server Added/Premium Server)
-
One by one paste the webhook url in a web browser & copy the ID & the TOKEN and paste it in the corresponding feilds in the
.env
file. -
Setup the MongoDB Database as instructed below.
-
Setup a Spotify Application as instructed below.
-
Go back to the Discord Developer's Portal in the OAuth2 tab, Select
BOT
in the Scopes Section & SelectADMINSTRATOR
from the BOT PERMISSIONS Section. -
Copy the URL and by using the URL invite the bot to a server.
-
After this, you need to install all dependencies by using this command. This will takes a few minutes.
npm i
-
Now, to start the bot use this command in the terminal.
node .
Additional Steps
Mongo DB Setup
To use the Economy Commands, you need to Setup a MongoDB Database.
- Create a Free MongoDB Account
- Click on the
Create a New Database
. - Selct the
CREATE
option in the Shared Teir. - Select a
Cloud Provider & Region
that is geographically closer to the average user that will use the bot. This will effect the responce time of the bot. - Then you can Name your Cluster, after that click on
Create Cluster
. This should take a couple of minutes. - Then click on
Database Access
from the sidebar & then click onAdd New Database User
. - Under the
Password - Authentication Method
. Enter a username & password. then click onAdd User
. - After that, click on
Network Access
from the sidebar & then click onAdd IP Address
. & click on theAllow Access from Anywhere
Then click onConfirm
. - now, Click on
Database
from the sidebar & then click onConnect
. - Then on click on
Connect your Application
. & Copy the link. - The paste that link in the
MONGODB
feild in the.env
file. - Now you need to modify that link,
- Replace
<password>
with the password for the user that you created in Step 7. - Replace
myFirstDatabase
with the name of the Database that you named in Step 5.
- Replace
- That's it.
Spotify Setup
To use spotify urls to play music follow these steps.
- Go to the Spotify's Developer Dashboard.
- Click on Create an app.
- Fill out the required info, then click on CREATE.
- Copy the Client ID & paste it in the
SPOTIFY_ID
feild in the.env
file. - Back in the Dashboard, Click on SHOW CLIENT SECRET
- Copy the Client Secret & paste it in the
SPOTIFY_SECRET
feild in the.env
file. - That's it.
Support, Feature Request & Bug Reports
Support & Feature Request
Join the official Support Server on Discord & we will be happy to assist you.
To Request new features contact us on Discord using the support server.
Report Bugs
You can report bugs or issues by opening a issue in this repository. Alternatevely you can also contact us on Discord using the support server.
CONTRIBUTORS
Contributions are always welcomed, but make sure to read Contributing.md first.