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

Eval output in general? #201

Open
ZeroIntensity opened this issue Oct 11, 2022 · 7 comments
Open

Eval output in general? #201

ZeroIntensity opened this issue Oct 11, 2022 · 7 comments
Labels
area: policies Related to the community's policies

Comments

@ZeroIntensity
Copy link

is there any chance eval output could be allowed in pygen? or at least stop the bot from deleting the message?

it’s really annoying trying to give examples or test something when the bot is deleting the message and/or you have to go to another channel to see the output

if spam is your worry it shouldn’t be all that hard to have a cooldown and line limit right?

@wookie184 wookie184 transferred this issue from python-discord/bot Oct 18, 2022
@wookie184
Copy link

Moved to meta as it's more a policy discussion.

A cooldown doesn't help much when there are a lot of people in a channel at once, similar to how a channel can still be very active when slowmode is quite high. It adds extra noise from trying to run code but being stopped by the cooldown. By not allowing it at all people know they can't use it there so there's no added noise.

If you want to test something it would be better to be in #bot-commands. If you want to share/show an example you can still show a REPL result, which is much more concise than the user message, bot message, and added info:

>>> x = [1, 2, 3]
>>> x[1:]
[2, 3]
>>> x[::2]
[1, 3]

If you want to explain something to someone in more detail/give more complex examples it may be better to open a help channel.

@ZeroIntensity
Copy link
Author

ok, sorry for the late follow up but sharing a repl result isn't an option a fair amount of the time due to mobile limitations (such as no code blocks).

maybe a "repl output" command could be added then?

@wookie184
Copy link

You should be able to send codeblocks on mobile the same way you can normally using backticks.

```python
# Code goes here
```

What would the repl output command do?

@jonathan-d-zhang
Copy link

I think a "quiet" version of the !eval command would be interesting, sort of like how there's 2 versions of the "off topic" command. The quiet version could output less lines, have smaller information text (cut out the "your eval job completed with ...").

@ZeroIntensity
Copy link
Author

you can see codeblocks, but you can't post them (on ios at least), since theres no actual backtick key on the keyboard

@ChrisLovering
Copy link
Member

you can see codeblocks, but you can't post them (on ios at least), since theres no actual backtick key on the keyboard

Switch to numbers, then press and hold the apostrophe.

@ZeroIntensity
Copy link
Author

oh i didn't realize that existed

@wookie184 wookie184 added the area: policies Related to the community's policies label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: policies Related to the community's policies
Projects
None yet
Development

No branches or pull requests

4 participants