Coder Social home page Coder Social logo

elementumalterego's Introduction

ElementumAlterEgo

A discord bot used to relay chat from a Spigot Minecraft Server. Designed for Elementum, hence the name.

The bot supports a few basic commands and the ability to bar users from using the bot. Ops must be defined in the config file that appears in /plugins/ElementumAlterEgo/config.yml

The bot is based off the Javacord API. As such, the bot must be built with Maven and shade in Javacord API.

Commands

The bot comes with a few limited commands

User Commands

  • !list - Lists all users in game
  • !listd - Lists all users in game with their displaynames (nicknames)
  • !link <user> - Link your MC account to your discord account
  • !unlink - Unlink your MC account
  • !whois <@user> - Shows the IGN of a linked user
  • !help - Shows all commands the user can run

Op Commands

  • !bar @user - Bars a user from running commands (the bot will ignore them from now on)
  • !unbar @user - Unbars a user
  • !barlist - List all barred users
  • !reload - Reloads the bot config
  • !relay <on/off> - Disable or enable the relay
  • !say <message> - Echo a message in game
  • !info - Shows the bot version and gives a link to the source code (this page)

Hidden Commands

  • !execute <command> - Executes a command on the Spigot server

Config

This is the default config that generates. Obviously, change it to suit your needs.

Token: '***insert token here***'
Ops:
- '145436402107154433'
BarredUsers: []
RelayChannelID: '000000000000000'
ReportChannelID: '000000000000000'
RelayEnabled: true
SayCommandFormat: '&7[Discord] <name>: &r<message>'
Aliases:
- 'example:list'
OpAliases:
- 'exampleop:list'

Token - The token for the bot

Ops - A list of user IDs that can run OP commands

BarredUsers - A list of all users the bot will ignore

RelayChannelID - The ID of the channel that the server will relay to

ReportChannelID - The ID of the channel that the bot will report stuff to (failed linkings, etc)

RelayEnabled - Allows the relay to be toggled off and on again

SayCommandFormat - The format the !say command should broadast with

elementumalterego's People

Contributors

geniusjam avatar loonyy avatar simplicitee avatar strangeone101 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

loonyy geniusjam

elementumalterego's Issues

Error on player leave

[18:16:15 INFO]: Leiks lost connection: Disconnected
[18:16:15 ERROR]: Could not pass event PlayerQuitEvent to ElementumAlterEgo v1.8.6
java.util.NoSuchElementException: No value present
        at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_312]
        at com.strangeone101.elementumbot.AlterEgoPlugin.relay(AlterEgoPlugin.java:222) ~[?:?]
        at com.strangeone101.elementumbot.AlterEgoListener.onLeave(AlterEgoListener.java:110) ~[?:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1453.execute(Unknown Source) ~[?:?]```

OP command aliases do not work with !x

Description

OP command aliases that use !x do not work for users that are op by the bot. For example, !abwarn is an alias for !x warn but people with bot op cannot use it. Only people with hardcoded access can

Solution

The issue itself is in the checking if they're a bot OP. Command aliases like !tps for !x tps function fine even without op. So its not an issue with !x itself, but somewhere that adds support for the op command aliases

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.