Giter Site home page Giter Site logo

sandconomy's Introduction

Sandconomy

A standard run-of-the-mill economy bot with plenty of customizability that can be self-hosted.

To Use

  • Clone this repository (git clone https://github.com/CantisW/Sandconomy)
  • Open Visual Studio Code or similar and open a terminal.
  • Download PostgreSQL and set it up. Optionally, download a DB management service such as DBeaver.
  • Put your username and password into data-source.ts.default under src then rename it to data-source.ts. Everything else is already set up.
  • Type in npm i in the terminal and wait for dependencies to install.
  • Set up the bot (see section below on instructions to set up the bot) and edit the settings under src/data/bot-settings.json.
  • Type in npm start.

Enjoy! Make sure it is set up and you have node.js (v16.14.0 or higher).

Setup Bot

Go to the Discord Developer Portal and make a bot. Do this by making an application, then making it a bot. You will need the bot's token, which is put into src/data/bot-settings.json.

IMPORTANT

Please make sure that when inviting the bot to your server using the OAuth2 tab, you tick bot AND application.commands else the bot will not work. Because the bot is self-hosted, you can give the bot administrator, although you could also limit its permissions to sending messages and embeds.

Features

  • Fairly simple to set up system
  • Slash commands
  • Customizable economy commands

Settings

All bot settings are located in src/data.

bot-settings.json handles all bot-specific settings. Here is where you'll input your token and guild id. 'settings.json' handles the settings for your currency. Put in a name, adjust cooldowns, etc.

sandconomy's People

Contributors

cantisw avatar

Stargazers

 avatar

Watchers

 avatar

sandconomy's Issues

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.