Giter Site home page Giter Site logo

cube's Introduction


A bot designed to run the economy of your Discord server with very little configuration required. You can invite the bot here.

Cube is a bot which is designed to be able to be lightweight, stable and give the user a bot which can run the economy. As of right now, the bot is in beta stages meaning it is constantly being developed. The bot uses Redis for its database, allowing for fast access to information and, therefore, lightning fast response times (usually well under 1ms). We don't want users waiting after all, this bot is meant to be fun!

We accept pull requests for Cube as long as they meet the following criteria:

  • Are fun features: We are NOT a moderation bot, features should be fun for the end user! If you want a moderation bot, we suggest Auttaja.
  • Are written well and meet usual Go coding protocol: We don't want code which will cause instability or performance hits for the bot.
  • Puts anything that takes a lot of time into threads: Go is a multi-threaded language, we do not want to hang one thread for a users request.
  • Is economy/XP based if it's a feature: We are an economy bot!

Note that Cube is automatically deployed from the master branch. Therefore, any PR's there will be much more stringent.

Setup

After building Cube, please note that credits.json needs to be in the CWD which you are running Cube from. If you are using Docker, this is sorted for you!

Additionally, the following environment variables need to be set:

  • TOKEN - The Discord bot token which is in use.
  • DEFAULT_PREFIX - The default prefix for the bot to use.
  • REDIS_ADDR - The address for the Redis host.
  • SENTRY_DSN - The Sentry DSN which will be used.

The following environment variables are optional:

  • REDIS_PASSWORD - The password for the Redis instance. This is obviously required if your Redis instance is password protected.
  • SHARD_COUNT - The amount of shards.
  • SHARD_ID - The ID of the current shard.
  • POD_NAME - This overrides SHARD_ID and is designed for use with Marver in a Kubernetes cluster.

cube's People

Contributors

iamjsd avatar danoffdiscord avatar

Stargazers

doge avatar Alex P. avatar > GayCookie โœŒ avatar Thomas R. avatar Vlad Frangu avatar  avatar sam avatar Jake. avatar Vitaliy Kanev avatar

Watchers

 avatar Jake. avatar

cube's Issues

aliases

We should add aliases into the bot:

๐Ÿ”“ The Hack

Cube has been hacked. It now has been shut down, we're investigating. Sorry for the inconvenience, the developers are sincerely apologizing for this.

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.