somethinggeneric / gamerbotagain Goto Github PK
View Code? Open in Web Editor NEWGamerbot with slash commands
License: MIT License
Gamerbot with slash commands
License: MIT License
Add a new extension under src/exts/ to query weather data for a location pre-set with another command by the user. Add an optional location parameter in-case the user wants to query for an arbitrary location.
like add other shells like zsh or nushell with cmds like /zsh or /nu.....
Instead of having one status loaded as per the example config, refactor so that there's an array of strings which are the statuses to select from, and an integer value for how long before a new one is randomly selected. Do not create a config.yaml
, only edit the .example
one to document how the end user can configure this feature. This will involve editing an extension in the src/exts
directory. I'm not sure which is most relevant.
bot/src/exts/status.py
- Add
status_messages
attribute as a list of strings
- Add
status_interval
attribute as an integer- Modify
set_default_status
method to select a random status message- Modify
status_task
method to callset_default_status
based onstatus_interval
conf.yml.example
- Add instructions for configuring
status_messages
andstatus_interval
GitHub Actions output: https://github.com/SomethingGeneric/GamerbotAgain/actions/runs/6077125578
(poke @ChampPG)
Modify the punchingbag container to use a docker volume for /home
would be like fr useful
Idea from Fries, to expand on mastodon features
The current implementation using a system command leaves the bot vulnerable to command injection. Please use the listed pyfiglet library to accomplish the same output
it might be possible to implement this without opening up an escape, such as hard-coding the commands used to reset the container.
when using emojis with the bugs command the emojis appear as rectangles.
possible solution would probably be to just install an emoji font (noto-fonts-emoji)
Add a new extension under src/exts/
to query weather data for a location pre-set with another command by the user. Add an optional location parameter in-case the user wants to query for an arbitrary location.
Feel free to use an API, but ideally if an API key is required it should be a free source. Or, feel free to implement some kind of web scraping if required.
bot/src/exts/internet.py
Add the
get_weather
function and modify theinternet
extension to include theweather
command.
Thanks to @RamonAsuncion for getting this building on AlarmPi, (PR SomethingGeneric/Gamerbot#25) now we can make a simple script to rename all the -arm
files to the def. names and build the containers.
๐
alternatively have people enter their timezones beforehand :)
Ideally, there would be a required config file (of some kind like json, toml, yaml), which would load a list of server ID's which are permitted to use the shell commands.
If the received message is in a permitted guild, then the shell input can be processed. Otherwise, respond with a error message of some kind.
my suggestion is to make the user directories formatted as "user_[UUID number]" so that no one can spoof another account (root or otherwise), and if a user wants to make their directory "personalized" make a /nickname or something command to change from user_111~ to e.g. amelia_111~. Presumably by either renaming the user (is that a thing) or just remaking it. And if it checks only the UUID it shouldn't really matter what the front name part is as long as its maybe just ascii chars no whitepsace or whatever is allowed in usernames/foldernames
Ideally, add a cog extension that uses a framework like flask or django to process web requests, and then push to a channel specified.
The message format in the web request could look like this:
{
"guild": 3892434435,
"channel": 32285723,
"message": "something goes here"
}
(this is for toot
)
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.