Git Product home page Git Product logo

abyssalith's Introduction

Abyssalith, The Discord Bot

This bot's repository is just a repo for a small server bot being that can do things. This is using Naming conventions from Volmit Software. This bot is only showing off the JDA at the current time, and making a bot to learn it. You are more than welcome to keep this code for whatever you want, as this is just a proof of concept.

Getting Started

This should help you get setup using this bot:

  • When you compile the bot, and execute the bot (as a jar. Use a .bat file.) Make this your config file
  • You need to use gradlew shadowJar
  • Location of config file: config/toolkit.json in a folder next to your bot
{
    "ModRole": "",
    "AdminRole": "",
    "BotGIF": "",
    "BotColor": "",
    "BotToken": "",
    "BotOwnerID": "",
    "BotPrefix": "",
    "MoneyEmoji": "",
    "MoneyName": ""
}

Prerequisites

  • You need Gradle, Java 16, an internet connection, and some IDE (would suggest InteliJ). Good luck with that however :)
  • This bot also has a language system that you can use to automatically determine the language someone is speaking, however THIS USES A LOT OF MEMORY like up to 2gigs, if you are using every language from Lingua 's systems - Manifold for using Amulet

Installing

  • You can clone this repo and import the project in any Java IDE that you may want to use. This project was made using IntelliJ, but any should work as long as it supports gradle.
  • Make sure that you have imported the plugins required via the Gradle file (look up how to do that for your own environment) and that your IDE recognize the folder java as Source folder and resources as Resources folder. If you have trouble getting the bot up and running, feel free to create an issue.

Setting up your environment (Bot Token)

Since this is a self-hosted solution, you will need to provide your own Bot Token to get your bot up and running.

If you don't know how to get your own bot token, you can follow this Github Tutorial to create yourself one.

Once you have your bot token, you can run the program for the first time. Your config/toolkit.json file should look like this :

{
    "ModRole": "Moderator",
    "AdminRole": "Admin",
    "BotGIF": "https://i.imgur.com/OdIvsbK.gif",
    "BotColor": "0xFFFF00",
    "BotToken": "haveatokenhere",
    "BotOwnerID": "00000000000000",
    "BotPrefix": "!",
    "MoneyEmoji": ":coin:",
    "MoneyName": "LitCoins"
}

The configuration file hotloads, and when you make any changes it will inform you in the console that it updated your settings.

Config Breakdown

"ModRole": 
- This is just a moderator role
"AdminRole": 
- This is just a administrator role
"BotGIF":
- This is the gif that is placed at the footer of the bot
"BotColor":
- `0x000000` hex number that the bot uses eg:`0x000000`
"BotToken": 
- the bots secret token here
"BotOwnerID":
- the id for whoever is the hosted owner of the bot
"BotPrefix":
- bot prefix
"MoneyEmoji": 
- For the economy, this is the server's emoji
"MoneyName": 
- name of your made up currency eg: `Pound sterling's`

Built With

  • JDA - The Java Discord APIs to allow a bot to run in Java
  • Gradle - Dependency Management

Authors

  • Brian Fopiano (NextdoorPsycho) - Original Creator and Owner of the softworks

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

abyssalith's People

Watchers

 avatar

Forkers

cyberflamego

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.