Coder Social home page Coder Social logo

zp4rker / zlevels Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 3.0 214 KB

A Discord bot levelling system. Being remade as dislevels.

Home Page: https://github.com/zp4rker/dislevels

License: The Unlicense

Java 100.00%
discord discord-bot java jda jda-discord-bot jda-bot

zlevels's Introduction

ZLevels

An open-source Discord bot, which adds a levelling system to your server.

Installing

Requirements

  • Latest Version of Java.
  • A MySQL database that you can connect to remotely or locally.

Installing

  1. Download the larest jar file from https://github.com/ZP4RKER/ZLevels/releases.
  2. Create a directory/folder anywhere on your compuer and put the jar file inside of it.
  3. Create a text document in that folder and copy the following code into it.
java -jar ZLevels.jar
  1. Save the text document as run.bat for Windows, or run.sh for macOS and Linux. (Make sure not to save it as run.bat.txt, and make sure to save it into the same directory/folder as the jar).

If not on macOS go straight to step 7.

  1. Open Terminal.
  2. Type chmod a+x , then drag the file you just created into the Terminal window, then press enter.
  3. Now run the file you just created and close the console once it stops, it should have generated a file called config.yml.
  4. Fill in the config.yml with all your preferred configurations. Overview of config:
basic-settings:
    name: 'Levels Bot' # The name of your bot
    token: 'This-Is-Totally-A-Real-Token' # The token of your bot user account can be found [here](https://discordapp.com/developers/applications/me) if you have not made a bot user yet, click the New App button, give it a name and avatar then click create app and then the create bot user button
    prefix: '/' # The characters put before a command. It can be whatever you want, however it cannot contain spaces yet.
    server: '234534392897339392' # Your server id goes here, you can get it by right clicking your server's icon and clicking copy id in Discord on a computer.
    ops:
    - '145064570237485056' # A list of users (by their id, get a user's id by right clicking their name and clicking copy id) that are able to use op only commands in ZLevels.
    embed-colour: '#fbae1d' # The colour of embeds. (Hex colours)
    game-status: '' # The Playing status of the bot.
database:
    host: '149.56.141.103' # The IP of the mysql server that the Database is located on (127.0.0.1 for localhost).
    port: '3306' # The port of the mysql server (3306 is the default port and shouldn't really be anything else).
    name: 'BotDB' # The database name of the bot.
    user: 'username' # Your mysql username.
    pass: 'password123' # Your mysql password.
more-settings:
    error-length: 600 # Amount of milliseconds errors show for.
    autorole-enabled: true # If rewards from roles.yml should be enabled.
staff-ratings:
    enabled: true # If Staff Ratings are enabled.
    staff-role: 'Staff' # The role which ratings listen for.
    channels: [] # Channels that ratings should be enabled in, use the channel ids (Right click channel and click copy id).
  1. Run the startup file again, then once it says its generated a file called roles.yml, close the console.
  2. Add in what roles you want people to get at certain levels. example: (Or leave it blank for no roles to be given).
MEMBER: # The name of the reward.
    name: Member # The name of the role to give (Case-sensitive).
    level: 5 # At what level to give the reward.
VIP:
    name: Vip
    level: 20
  1. Run the startup file again.
  2. ZLevels is now running, enjoy!
  3. To stop ZLevels, just hit the x at the top of the window of the console.

Credits

  • Madzahttr - Writing the instructions.

zlevels's People

Contributors

rexs123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.