Giter VIP home page Giter VIP logo

nodiggs-v2's Introduction

nodiggs-v2

A JS rewrite of our movie night bot.

Running the bot locally

You'll need JavaScript and Node set up on your machine. Running npm install while in the code's directory will install all the dependencies.

From there, you can run the bot locally using: node bot.js

You'll need a config.json file in this directory where you can add the bot's token, clientID and guildID. This is not committed to GitHub for security purposes.

nodiggs-v2's People

Contributors

kaitlinms avatar

Watchers

 avatar  avatar

nodiggs-v2's Issues

Implement the /status command

Add the /status command.

It's very likely that this might actually rely on database functionality.

In the old version, this worked as:

  1. for each message
  2. for each reaction
  3. if the current emoji is a poop, set vetoed to true
  4. otherwise count the current emoji
  5. if the count is more than the current highest number, set it to the current highest
  6. and also set the emoji to the current emoji
  7. add the movie and its vote count to the list

Shortlist Command

Add the shortlist command

Should only be available in #operations

Add database functionality

Create rudimentary databases for tracking proposals, votes, movies, etc. This can be broken down further later.

Handle deleted proposals

If someone deletes one of their proposals, the system should handle this. It should probably:

  • Mark this proposal as deleted in the database
  • Make sure that it's not counted when reporting results to the channel

Matt Firsteenth

Port over the matt firsteenth message on event:messageCreate.

Movie Previews

Create the preview command, which displays gifs from a randomly selected proposed movie.

Should only be usable in #operations.

Apparently we also support the command 'gif'!

Prevent too many movie suggestions

If someone has made more than 3 movie suggestions, their 4th suggestion should be deleted and a DM should be sent to the person letting them know what has happened.

Events: Vote for best night

The bot should initiate a vote for the best night to hold movie night, and once it's chosen it should update the event appropriately.

Coin Flip

Add the coin flip functionality. Should only be usable by mods.

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.