annikacodes / expecto-botronum Goto Github PK
View Code? Open in Web Editor NEWA Pokémon Showdown chatbot written in Python.
Home Page: https://psim.us/botdevelopment
License: MIT License
A Pokémon Showdown chatbot written in Python.
Home Page: https://psim.us/botdevelopment
License: MIT License
Connection.userlist
attribute mapping User
s to lists of roomids that's modified upon receiving a Message
of type join
or leave
. (f8324cc)Connection.getUser(id)
attribute that can fetch a User
object from the room's userlist
(f8324cc)User
objects - a check under Connection.userlist
for other rooms the user is in, perhaps? (f8324cc)/userlist
on joining a room + handler (e331f2e)See v3.md for more info.
Connection
class (a58c901)Message
class (b0b736f)Room
class (3ba2080)User
class (d5cac12)config.json
(c45a028)Module
class (not technically in core.py
but necessary for it to function) (a093d04)For a challenge, add logging (#12) or joinphrase stuff (#8).
While v3.md and Python's docstrings are good programmer-facing documentation, there should be some kind of documentation of commands for PS! users, and perhaps more documentation of config.json
options too, since that doesn't have docstrings.
Now that we have the ps-client Python package, we can simplify this repo to avoid code duplication.
This code is very long and difficult to read - a refactor would be good.
See v3.md for details.
data.json
Things that need to happen:
In src/lib.rs
.
Currently, there are many false "error" messages caused by git pull
sending stderr
data on success, and iirc the bot also repeats messages.
if two things use data.get()
and then later data.set()
there is no lock and data could be overwritten. this is bad. i am very hot and tired but future annika please deal with this
Add command(s) to utilize the Superhero API to get info on superheroes and provide it in chat in ways that are beneficial to M&M.
See this PS! code for how to use /cmd
.
This would allow us to test modules that are reliant on data.json
.
Message
Room
User
Connection
Could be a neat little feature extension, and potentially take over some of the functionality of the personal bot I run.
i.e. there are 2 different Atlases with IDs 48
and 49
respectively. The bot currently can only see Atlas with ID 49
.
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.