Coder Social home page Coder Social logo

elevate's Introduction

Elevate

The only Discord bot you'll ever need

Features:

  • Moderation

  • Automod

  • Welcomer

  • Reaction roles

  • Modlog

  • Music

  • Customizable prefix

  • And more!

Self hosting

Self hosting of Elevate is not officially supported, and this is the only guide.

Python3.8 is the only version of python this has been tested on


Installing Dependencies

Install python

sudo apt-get install python3.8 python3.8-venv python3-pip

Install git

sudo apt-get install git

Install Java

sudo apt-get install openjdk-11-jre-headless

We reccomend creating a venv

python3.8 -m venv ~/elevate
source ~/elevate/bin/activate

Clone the repository

git clone https://github.com/craziiace/elevate.git
cd Elevate

We also reccomend installing dependencies from requirements.txt

python3.8 -m pip install -r requirements.txt

Discord.ext.menus also needs to be installed

python3.8 -m pip install -U git+https://github.com/Rapptz/discord-ext-menus

Setting up tokens

Create a a file in the directory utils called config.json. This file should look something like this:

{
  "TOKEN":"discord token", 
  "TOPTOKEN":"top.gg token",
  "DONATETOKEN":"donatebot.io token",
  "DELTOKEN":"discord extreme list token",
  "KSOFT":"ksoft.si token",
  "STATCORD":"statcord token"
}

Installing & running non-python dependencies

Both Lavalink and MongoDB need to be installed and ran.

To install MongoDB, I used this guide from DigitalOcean.

For Lavalink, download the latest .jar file from here, and use FTP to put it on your server (if it is remote).

You also need to set up the lavalink application.yml (see this example), and change the dict in cogs/music.py (starting at line 357) to the credentials in the lavalink application.yml. If your Mongo database is external and/or has a password, that needs to be specified in every MongoClient() call.

I usually run lavalink in a tmux session, and MongoDB using systemd.


Running the bot

This is very simple!

Use tmux to run the bot even when the ssh session is closed.

tmux

Then, run the main bot.py

python3.8 bot.py

You will most likely get some errors. If they are AttributeErrors, thats fine.

The bot should now be up, use this to generate an invite link


Giving credit:

Elevate is licensed under the GPL-3.0 License. This means that you can use this code for commercial & private purposes, but:

  • You must state any changes you made to the code

  • You must disclose the source (do not modify the about or credits commands)

  • Your code must be open source, and have the same license as this

  • You are resposible for anything that happens as a result of the code

Violating any of these conditions will result in a DMCA takedown of your fork of the repository


Self hosting support

Self hosting is not officially supported, try it at your own risk

elevate's People

Contributors

teddyrasmussen avatar dependabot-preview[bot] avatar dependabot[bot] 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.