GithubHelp home page GithubHelp logo

nodiggitynobot's People

Contributors

gpuzniak avatar kaitlinms avatar

Stargazers

 avatar

Watchers

 avatar

nodiggitynobot's Issues

Bot can't reference Kat

Maybe this only happens if she's offline?

Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\smith\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\smith\Documents\GitHub\NoDiggityNoBot\bot.py", line 976, in on_message
    await decide_command(message)
  File "C:\Users\smith\Documents\GitHub\NoDiggityNoBot\bot.py", line 429, in decide_command
    await bot_say("{0.mention}, what time is it?!?!".format(bot.get_user(639547102023647233)), bot.general_channel)
AttributeError: 'NoneType' object has no attribute 'mention'

Detect and store movies

The bot needs to store all of the proposed movies and their votes.

  • Add a new movie to a list
  • If someone deletes the message, remove the movie from the list
  • If a ๐Ÿ‘ reaction is added to a movie, count it
  • Ignore all other reactions
  • If a ๐Ÿ‘ reaction is removed, decrement the vote count for that movie
  • If the movie has been vetoed, set a veto flag
  • If a veto has been removed, unset the veto flag, but only if there are no more veto reactions

Poop announcements not working

Maybe this is related to the user who does the pooping not being online?

Traceback (most recent call last):
  File "C:\Users\smith\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\smith\Documents\GitHub\NoDiggityNoBot\bot.py", line 1003, in on_raw_reaction_add
    await check_reactions(message, user)
  File "C:\Users\smith\Documents\GitHub\NoDiggityNoBot\bot.py", line 66, in check_reactions
    await check_reactions_movie_channel(m, user)
  File "C:\Users\smith\Documents\GitHub\NoDiggityNoBot\bot.py", line 91, in check_reactions_movie_channel
    await bot.general_channel.send('{0} has been ๐Ÿ’ฉ\'d by ||{1}||!'.format(m.content, user.display_name))
AttributeError: 'NoneType' object has no attribute 'display_name'
Ignoring exception in on_message

Add timing

We need to allow:

  • Initial setting of the voting time, runoff voting time, and movie time
  • Changing all of the above times later

Update to use Discord bot commands

Discord now allows you to make "bot commands", which is when you add a slash in front of a command: /status

This will allow folks to see all of the available commands, and is just a more standard way to interact with a bot.

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.