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
Things that need to happen:
See v3.md for details.
data.json
This code is very long and difficult to read - a refactor would be good.
Could be a neat little feature extension, and potentially take over some of the functionality of the personal bot I run.
See this PS! code for how to use /cmd
.
Currently, there are many false "error" messages caused by git pull
sending stderr
data on success, and iirc the bot also repeats messages.
This would allow us to test modules that are reliant on data.json
.
Message
Room
User
Connection
Now that we have the ps-client Python package, we can simplify this repo to avoid code duplication.
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).
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.
i.e. there are 2 different Atlases with IDs 48
and 49
respectively. The bot currently can only see Atlas with ID 49
.
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.
In src/lib.rs
.
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
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.