GithubHelp home page GithubHelp logo

moleskine's Introduction

Moleskine

A discord bot for the popular Belgian tv show "De Mol" (invite link)

ES6

As node doesn't support ES6 out of the box (and type: module not a clean solution is) this bot uses rimraf and babel to automatically transpile the code.

Logging

This project uses Winston for logging. The only supported levels are: error, warn and info. Please do not use any of the other levels when contributing. It is automatically set up such that while developing the logs are printed to stdout and in production these are written to moleskine.log.

How to run locally

  1. Fill the config.json in as shown in template.config.json
  2. Install the dependencies
  3. Run npm run watch:devto run the bot

Publishing

Publishing is as simple as making the config.json and running npm run prod.

Screen

The usage of screen is recommended above nohup, as nohup errors with the current npm setup. To use screen for continuous running on your server follow these steps:

  1. Make sure you have screen installed with screen --version
  2. Run screen -S moleskine to start a named session with the name "moleskine"
  3. Follow the steps mentioned in publishing
  4. To exit the sessions press Ctrl-a followed by Ctrl-d

In the case that you want to restart the bot, or shut it down, you can resume the screen with: screen -r moleskine.

Bot usage

The default prefix is '?'. To change this set the owners setting manually in your MongoDB (Atlas) instance, then issue the setSetting command.

To get a list of all available commands run: [prefix]help.

moleskine's People

Contributors

zelzahn avatar daanwet avatar

Stargazers

The nice guy avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

jotra04

moleskine's Issues

moleBet graph

Maybe when issuing the nextWeek command a graph could be shown on each guild that displays the percentage of voters who think the mole was for that week?

Backend error handling

Currently when there's a backend related error this error isn't handled by the frontend and thus not correctly processed.

Documenation

Lot's of functions are quite confusing right now, thus documentation should be added.

Don't store username and discriminator

Don't store the username and discriminator of a user in the database because these can change and thus are unreliable. Even if this is used for logging, olny the id should be used as this is the only reliable thing in a database.

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.