Giter Site home page Giter Site logo

tauakiou / aginahbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from legendarylinux/aginahbot

0.0 0.0 0.0 540 KB

A Discord bot designed to help organize, host, and moderate games and events on the Archipelago Discord server.

License: MIT License

JavaScript 100.00%

aginahbot's Introduction

AginahBot

A Discord bot designed to help organize and moderate Multiplayer-Capable Randomizer games.
Find it in use at the Archipelago Discord.

Click here to learn how to add AginahBot to your Discord server!

Current Features

  • Support dynamic voice and text channels, and automatic assignment of permissions on those channels
  • Ready check system for users in dynamic game channels
  • Privacy controls for users in dynamic game channels
  • Automatically delete ROM files, and compressed files containing them
  • Organization features to help schedule games
  • Alert players in game lobbies that their seeds are ready
  • Custom role system to allow users to assign themselves pingable roles to be alerted of games
  • Generate single-player or multiplayer games using the generate command

Supported Games

All games supported by the Multiworld Multi-Game Randomizer Archipelago are compatible and have full MultiWorld compatibility with each other

Self-Hosting

Prerequisites

  • node and npm should be installed to run the bot and install dependencies
  • unrar should be installed on your system to process .rar files.
  • A MySQL 8 server should be installed, and a database available.

Configuration

A config.json file is required to be present in the base directory of the repository. This file should contain your Discord bot's secret key, database information, a command prefix, and a name for the Moderator role which will be created on servers the bot joins if it does not exist already.

Example config:

{
  "token": "discord-bot-token",
  "dbHost": "hostname-of-mysql-server",
  "dbUser": "database-username",
  "dbPass": "database-password",
  "dbName": "database-name",
  "commandPrefix": "!aginah ",
  "moderatorRole": "Moderator"
}

If you intend to create your own bot on Discord using the code in this repository, your bot will need permissions granted by the permissions integer 285273168.

The following permissions will be granted to AginahBot:

  • Manage Roles
  • Manage Channels
  • Read Text Channels & See Voice Channels
  • Send Messages
  • Manage Messages
  • Embed Links
  • Attach Files
  • Add Reactions
  • Move Members (Voice Channels)

Setup

# Clone the repo
git clone https://github.com/LegendaryLinux/AginahBot

# Enter its directory
cd AginahBot

# Install required packages
npm install

# Set up your config.json file
vim config.json

# Initialize the database
node dbSetup.js

# Run the bot
node bot.js

Note that dbSetup.js requires a database user with the CREATE TABLE permission, but normal operation requires only SELECT, INSERT, UPDATE, and DELETE on your target database. It is recommended to use an administrative user to configure the database, and a non-admin user with restricted permissions during normal operation.

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.