thedylone / laffey-bot Goto Github PK
View Code? Open in Web Editor NEWdiscord bot with valorant commands with postgres database
Home Page: https://thedylone.github.io/laffey-bot
License: MIT License
discord bot with valorant commands with postgres database
Home Page: https://thedylone.github.io/laffey-bot
License: MIT License
Is your feature request related to a problem? Please describe.
as valorant-watch can take some time to complete, users may think the bot did not respond, and will attempt to run the command again
Describe the solution you'd like
the bot should indicate that it has responded to the command and is retrieving the data
Describe alternatives you've considered
using slash command will show bot is responding, however this should be available for prefix command too
Additional context
allow valorant-watch to accept tag with '#' as well, or if user submits entirely as username#tag
Describe the bug
bot will delete ALL player data if its disconnected from the internet while running
To Reproduce
Steps to reproduce the behavior:
Expected behavior
bot should stop running or logic to identify that bot is not connected
Is your feature request related to a problem? Please describe.
no more heroku :(
Describe the solution you'd like
fly.io
Describe the bug
once the view has timed out, remove the view to prevent user from getting the error "This interaction failed"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
remove the ability to interact with the message once it has timed out
perhaps reset the embed back to the home embed? (the one that is originally shown at the start)
Is your feature request related to a problem? Please describe.
currently, the bot only has a command to show live and upcoming videos for a select few members.
Describe the solution you'd like
implement a command to show all live hololive streams. as there can be a lot of streams live simultaneously, implement a page system to scroll through the streams
Is your feature request related to a problem? Please describe.
for better scaling of the bot to use in other guilds aka servers.
Describe the solution you'd like
a database containing each guild and their respective watch channel for valorant. guild data can only be changed by moderators of the server. player data will then also include the guild id they are requesting it.
Describe alternatives you've considered
considered putting channel id into player data but
Additional context
use another json file, can remove watch channel from config
Describe the bug
bot is unable to find map, then map_url is not assigned since it is only called within loop.
To Reproduce
for map in map_data.get("maps"):
if map.get("name") == map_played:
map_url = f"https://media.valorant-api.com/maps/{map.get('id')}/splash.png"
break
if map_played is not any of the maps, map_url will not be assigned
Expected behavior
map_url should be null or empty.
Is your feature request related to a problem? Please describe.
team deathmatch gets repetitive and sends many alerts
Describe the solution you'd like
ignore team deathmatch games, similar to normal deathmatch games
Is your feature request related to a problem? Please describe.
want to wait for multiple people, but current function only takes 1 at a time
Describe the solution you'd like
ping multiple people and wait all in 1 command to reduce spam
Additional context
with multiple wait for A and B, if A finished but B has not, should it still ping when B is done? currently yes
Describe the bug
if api returns OK but empty match data, bot errors and background loop is stopped
To Reproduce
Steps to reproduce the behavior:
Expected behavior
catch the error and try again or check if api returns actual data
database file storing the player data is ephemeral in Heroku.
hosting the database instead to ensure permanence.
will look into various hosting services
Is your feature request related to a problem? Please describe.
implement ability to customise the ping alert media
Describe the solution you'd like
either send the media via file upload or through embed image
Describe alternatives you've considered
if no custom media then will default to built-in image
Additional context
will be similar to the other customisable media
Describe the bug
the bot does not/is not able to update the user's information. information entered during valorant-watch is not updated, while the user may change their in game name, tag, or region.
due to both api limitations and lack of code to try to update some information.
Expected behavior
bot should occasionally update the user's information, e.g. once a week.
Is your feature request related to a problem? Please describe.
show a message similar to feeder if someone is on a streak. >=3 wins or losses
Describe the solution you'd like
similar embed as feeder, or together with the original watch ping
Additional context
bot has to be running and watching 24/7 else it might skip a few matches in between
Is your feature request related to a problem? Please describe.
valorant-wait is able to wait for multiple users on prefix command, but not on slash command yet.
Describe the solution you'd like
able to wait for multiple users in one slash command, similar to prefix
Describe alternatives you've considered
just use the prefix command instead
Additional context
sadge
Is your feature request related to a problem? Please describe.
create tests to ensure each function works
Describe the solution you'd like
nice tests
Describe the bug
attempting to append to an empty list field in the database results in an error.
To Reproduce
Expected behavior
to be able to add to an empty list field
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.