tama / pogo-discord-mod-bot Goto Github PK
View Code? Open in Web Editor NEWSimple mod tasks on a (pokemon go related) discord server
License: GNU General Public License v2.0
Simple mod tasks on a (pokemon go related) discord server
License: GNU General Public License v2.0
Put all discord related code in another place and re-wiring.
Will make tests and bug fix easier to do.
Global "issue" to track code related to environment and CI and/or automated builds + tests.
The test coverage is (probably) bad, and some bugs can't be catched with only unit tests. We should implement a mocking strategy to test the commonly used command so that we can never break it.
Have some kind of alert(s) when the bot is not online and/or not responding to commands (push notification ? email ?) to be able to see what's wrong quickly.
Ideally, give the administrators some way to manually reboot via some interface (website + login with discord ?)
To avoid cluttering the channels where all the commands are sent, have some command to clean the old commands (more than X hours/minutes old ?), or some script that can be launched every night automatically.
Bonus : configurable "expiration time" by server, and discord admins can choose to opt-out if they don't need it
When a user gives an ambiguous name for a gym, we answer with all the possibilities. Maybe we can implement these possibilities as clickable button, that would create the corresponding raid?
!raid
message with the correct informationThe bot is still running ("clean" messages in log to indicate it's running) but it does not archive the raid channels. Restarting it manually usually solve the problem.
The bot does not create a new channel if the time given in the command is H:MM and not HH:MM (e.g !raid test gym @9h37
)
(Related : issue #9)
!raid boss gym 13h50
13h05 -> 13h50
14h05 -> 13h50
The query should be easier to use, notably for phone user
We should:
That's all I can think of for now, I am sure we could find other small issue that would greatly improve the announcement feature
Have some command to quickly delete and archive a raid channel (in case the bot didn't pick up the finished raid channels for a long time, or someone need to quickly delete a batch of channels).
Of course, this command is dangerous so only users with some role can use it.
Have the bot log everything it received and did for analysis purposes (Commands received, errors encountered...)
Thanks to travis, we could add badges like the status of the project or the coverage to the readme. This is a nice touch as it will motivate us to have a better coverage.
I've seen some people use the @h format, truncating the minutes. It's an edge case but it's really easy to add
it crash after 1 minute
(bot-env) root@59997-53573:/home/pogo-discord-mod-bot/mod_bot# python3 main.py
reading configuration
on_ready
{}
Traceback (most recent call last):
File "main.py", line 443, in
loop.run_until_complete(asyncio.gather(run(token), modtask()))
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "main.py", line 296, in modtask
warn_interval = int(get(server.id, "mod.warn_interval", conf))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
As a user with enough rights send a specific command in the right channel, the bot should :
An admin can then use another command to set the role to someone and grant it access to read/write in the channel
Bonus : Automatically delete the channel and the role once the EX raid is done
As of now the only way to correct raid times is to call someone with "manage channel" permission to manually change the time.
The solution is to have some kind of command to manually correct the time of an existing raid channel (mod-bot acting as a proxy).
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.