« first day (4939 days earlier)   

5:29 PM
Ah, crap! I didn't mean that, sorry
It's moved to MetaPython now. I genuinely didn't meant to move it to Ouroborous, it was just muscle memory in selecting a room. I'm not going to engage you there anyway, because I don't care to (you have frustrated me beyond reason before), but you can pick it up there
 
@roganjosh Ok, I'll answer to your last message there, then it's up to you to answer or not.
 
is this a good place to ask random python-related questions?
 
5:45 PM
Yes, sure
 
@RocketFriday Hello :) Generally yes, but we do have some room rules
 
so, I'm using discord.py, not sure if it's really unique to that tho.
there are events like
```py
@bot.event
async def on_ready():
```
and some have args passed.

I've been tryng to make custom ones and I've gotten it to work
but not with args.

using → bot.dispatch("my_event", a,b,c)
if I do:
```py
a, b, c = await bot.wait_for("my_event")
```
from within the on_ready block, it works.
but
```py
@bot.event
async def on_my_event(a,b,c):
```
this doesn't get called.

but... if I fire the event without args
it does fire, but then obviously I have no access to the args (that weren't passed)
how can I pass args and get them from an @bot.event and not from manually awaiting an event
cant edit msgs :/ sry bout the lack of formatting
 
 
1 hour later…
7:28 PM
Seems my VS Code is having a moment
 
What's the environment set as in the bottom right?
 
@roganjosh 3.11.8 ('venv': venv) -- a restart fixed things. Thought all the red lines was kinda funny. :)
 

« first day (4939 days earlier)