Inviting Cosmos bot with default administrator permissions ensures smooth working of all of its features and plugins without any unexpected errors.
Invite Cosmos to your server or use the following invite URL with administrator permissions.
If you're willing to run your own custom instance of Cosmos bot, you can easily do so by getting its source code and performing a quick setup by installing Python and other dependencies.
Cosmos bot requires at least Python 3.8 or more to run. Depending on the operating system you're running, you can get it from their official website. If you're running Linux or any Debian based system, you can simply get it by running following commands:
$ sudo su$ apt install python3.8# Install optional dependencies for voice support.$ apt install libffi-dev libnacl-dev python3-dev
Get the latest source of Cosmos bot from the Github repository using Git or just get the zip file and then extract on your local file system. To get the welcome banners and other image based features working, get the Image Processor source and include it in the main source code of the Cosmos bot.
$ git clone https://github.com/thec0sm0s/cosmos-discord-bot.git# Get the Image Processor.$ git clone https://github.com/thec0sm0s/image-processor.git
Cosmos bot uses MongoDB to store all of the required data. You will be required to setup the database server. You may either use the MogoDB cloud services or run it on your own local server. Check its guide on installing MongoDB on your local machine.
Requirements for Cosmos bot and Image Processor can be installing using following command. Just make sure you're in root directory of the Cosmos' source code.
$ python3.8 -m pip install -r cosmos-discord-bot/requirements.txt$ python3.8 -m pip install -r image-processor/requirements.txt
The final step is to do the important configuration in the different config files which resides under the
cosmos-discord-bot/cfg/ directory. You can check all of the configs files and make changes as you wish and whatever the way you want in customizing the bot.
Prepare and check all of the config files except as required. Cosmos bot uses several emotes for visual better visual appearance internally which were previously added in different servers. If you want to keep using the default emotes added on our emote servers, you will have to get your bot added to our emote servers by asking for it in our community.
The other option is to manually create your own emote servers and add all of the emotes which are used by Cosmos bot and put their IDs in the
emotes.yaml file. All of the emotes internally used by Cosmos bot are given below.
Not important but config files inside this directory or category determines the default appearance of the Cosmos bot.
Use Python to run the
run.py file to start the Cosmos bot. In separate process run
wsgi.py file to start the Image Processor server and make sure the port
5000 is free which is used as default.
On Linux machines, you can use the following commands.
# Terminal 1$ python3.8 cosmos-discord-bot/run.py
# Terminal 2$ cd image-processor$ gunicorn -b 127.0.0.1:5000 "app:create_app()"