Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self timeout command #85

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Self timeout command #85

wants to merge 3 commits into from

Conversation

httaq
Copy link

@httaq httaq commented Apr 1, 2024

?zipit 3d3h to time out yourself for 3 days 3 hours
Idea by @Mattwmaster58

@@ -64,6 +66,35 @@ async def sync(self, ctx):
async def eight_ball(self, ctx):
await ctx.send(random.choice(self.eight_ball_options))

@commands.command(name="zipit")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: name this "lockin" instead

value = int(match.group(1)) * v["duration"]
total_duration += datetime.timedelta(minutes=value)

if total_duration.seconds == 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe set an upper bound to like 2w? to protect users

@Sooraj-beep
Copy link
Owner

Why not add this command as a slash command?

@Mattwmaster58
Copy link
Contributor

I have a personal bias against slash commands. But it's a good point, should probably be a slash command. There's no need for speed which is necessary for commands like snipe.

@Sooraj-beep
Copy link
Owner

I didn’t really think about speed. For me, it was more about the convenience that slash cmds provide. I think we should migrate cmds which don’t have to be fast to slash cmds, and make new ones slash cmds as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants