Coder Social home page Coder Social logo

boolean's Introduction

Boolean

About

A bot for Conaticus' Discord server. A document of the development process has been made here: https://www.youtube.com/watch?v=xq2jR3_msmk.

Documentation

Setup

Installation

  • Clone/Fork the repository
  • Run cd boolean

Setting up the .env

In order to setup the bot, you must create a .env in the parent directory as you can see in the example, .env.example.

In this file you must declare the bot's TOKEN - this is the token from the Discord Developer Portal.

Syntax:

TOKEN="your bot's TOKEN"

This will automatically be ignored from the .gitignore. So don't worry about this data being public.

Docker

For Docker users, simply run

  • docker build --tag boolean:latest .
  • docker run -d --restart unless-stopped boolean:latest

Running the bot

  • Run npm i

In order to start the bot, you must run npm run dev to run the TypeScript developer environment. Don't worry about the other package.json scripts, they are for production.

Due to many of the values being hardcoded, in order to run your instance you will need to change some values - such as the guildId in config.ts as it is used for deploying slash commands.

Other Information

Embed Colours

General: "#5E81AC"
Success: "#A3BE8C"
Error: "#BF616A"

Configuration

Configuration can be performed via the /config command to set special roles and channels that the bot identifies and utilizes.

Logging

Console levels and their refrences

  • Fatal : logger.console.fatal("")
  • Error : logger.console.error("")
  • Warn : logger.console.warn("")
  • Info : logger.console.info("")
  • Debug : logger.console.debug("")
  • Trace : logger.console.trace("")
  • Silent : logger.console.silent("")

Channel logging

-Embed : logger.channel(<EMBED>, <CHANNEL>)

Contributing

Look at CONTRIBUTING.md to find out how you can help contribute to the development of this bot.

Support

If you like cool coding projects like this, subscribe to me at https://www.youtube.com/channel/UCRLHJ-7b4pjDpBBHAUXEvjQ Help the community with a simple โญ

boolean's People

Contributors

benjammingkirby avatar conaticus avatar derpinou avatar devshaded avatar distantszn avatar dylhack avatar fartdev avatar hordlawk avatar infinitydevtech avatar jakob5358 avatar julixndev avatar kitsunekenshi avatar max-programming avatar noobif-y avatar notghex avatar parasharsangeet avatar phill030 avatar protogendelta avatar realjobogamer avatar revot334 avatar shocktr avatar shungjung avatar speckyyt avatar stungjung avatar xhayper avatar

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.