sleibrock / discord-bots Goto Github PK
View Code? Open in Web Editor NEWA collection of Discord programs to run autonomously
License: MIT License
A collection of Discord programs to run autonomously
License: MIT License
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.