question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restricting/redirecting output of commands to bot-commands for regular users

See original GitHub issue

Edit: I’ve decided to make this a general issue, since the !free command turns out to be a bit disruptive as well. In python-discussions, there have just been four consecutive calls to !free and it looks very disruptive (see below).

My idea would be to create an easy way to redirect the output of certain commands, free and help, to bot commands for regular users, with the bot sending a temporary message to the user in channel redirecting them there. The bot could then delete that message (and, maybe, the invoking message as well) after a certain amount of time has passed.

Four times !free in python-discussion: 2019-01-18_17-38-32

Old message for context: Now the !help command works outside of bot-commands again, we may want to think about restricting the use/output to bot-commands for regular users. The help-embeds are quite sizeable and, therefore, quite disruptive in on-topic channels.

I want to propose to redirect the output of help (the help-embed) to bot-commands for non-staff members, prepended by a mention of the user invoking the command. In addition, we could display a small, non-disruptive embed in the original context channel redirecting the user to bot commands. I think this should also be the case for help-calls on specific commands, as the embeds for those can be quite sizeable as well (e.g., !help site).

Personally, I’d like this restriction to only apply to regular users, so staff can pull up help on a command quickly in channel and use help in the staff channels.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (24 by maintainers)

github_iconTop GitHub Comments

3reactions
lemonsauruscommented, Jan 18, 2019

I don’t really like the idea of a what’s free channel. we already have a channel for that, it’s called #bot-commands.

I think if we took the steps we’ve talked about before in regards to shortening the free command output (only showing the best channels rather than everything for !free and adding a !free all to show everything), it wouldn’t be such a big problem. We could probably increase the channel cooldown a little bit, and then redirect output to #bot-commands if the cooldown is active. This combination of steps should more than curb the problem.

1reaction
jb3commented, Jan 18, 2019

Ah, I assumed it was a user bucket, in that case I agree with you about increasing that, also I don’t know if I agree with auto-delete but maybe auto-delete of any rate limited invocation messages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chat Bot Overview and Guide - StreamElements
What custom commands can we create? You can create a regular command that will show text output -. This command's settings will look...
Read more >
Error (task exception was never retrieved) when running ...
In the file C:\Users\mitsuk\Documents\rirakkumabot\main\helpers\db_manager.py, line 8 async with db.execute("SELECT * FROM blacklist WHERE ...
Read more >
Commands - discord.py
Commands are defined by attaching it to a regular Python function. The command is then invoked by the user using a similar signature...
Read more >
How to redirect shell command output | Enable Sysadmin
Learn how to process the output of shell commands within a script and send it to files, devices, or other commands or scripts....
Read more >
Importing/removing Butler Bot commands for legacy accounts
In Butler in Trello, commands can only be modified by the user who created them, but that user will be able to see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found