Giter Club home page Giter Club logo

discord-bots's People

Contributors

dependabot[bot] avatar sleibrock avatar stevenlambrou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discord-bots's Issues

Option to change target Dota 2 match API

Currently the Dota 2 match bot only posts links to OpenDota. OpenDota, while the API is quite handy, the website is pretty insufferable to use itself (navigation is a pain, the UI isn't very intuitive compared to Dotabuff). There should be a switch toggle somewhere to choose between Dotabuff or OpenDota as the match link (but will still continue to use OpenDota as the API source).

Not sure if this should be integrated as a chat bot option, or a configurable JSON file for the bot, or even a command line option. The CL option works best as there isn't any hard file state to work with, just the configuration file used by the supervisor.

Event loop is closed

I created a bot base on the DumbBot you created on the tutorial for Discord.
But everytime I try to run i get the Event loop is closed error
I tried many bots, many run functions i found but none of them works.
Here is the traceback console :

[foxlibot     @ 12:37:23] Local blacklist not found    
Caught an exception: Event loop is closed
foxlibot quitting
Traceback (most recent call last):
  File "C:\Users\allon\Documents\Dev\Python\FoxliBOT\FoxliBOT.py", line 161, in <module>
    d.run()
  File "c:\users\allon\documents\dev\python\foxlibot\Bot.py", line 318, in run
    #    quit()
  File "c:\users\allon\miniconda3\lib\asyncio\base_events.py", line 443, in run_until_complete
    self._check_closed()
  File "c:\users\allon\miniconda3\lib\asyncio\base_events.py", line 357, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

EDIT : It was just miniconda
Works with python 3.6

Dota2 bot error in posting chat messages

It's more to do with this Line 239

user_lines = [l['key'] for l in chat if l['unit'] == pname]

The error stems from trying to index the 'unit' key in a chat item dictionary. Should be changed to a .get(key, defaultvalue) call like most of the code to avoid errors.

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.