Closed ghost closed 8 years ago
paraml?
How about you just use input...
On 1 June 2016 at 12:25, Pangea notifications@github.com wrote:
paraml?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CloudBotIRC/CloudBot/issues/234#issuecomment-222875961, or mute the thread https://github.com/notifications/unsubscribe/ABZoEecSTJ04bw7Nki6JbjcH_B2lZaqgks5qHO21gaJpZM4IrCJ4 .
Because I need to use a different part of the table based on which alias was used and I don't want 50 if statements, and I don't want 50 different functions that do the same thing.
I think you're, firstly, exaggerating what you'd need to do. Secondly, you should just make the main guts of this a function then pass in what you need from each command into that function. I can't be bothered reading directly into cloudbot's run statements for commands.
On 1 June 2016 at 13:21, ihatevim notifications@github.com wrote:
Because I need to use a different part of the table based on which alias was used and I don't want 50 if statements, and I don't want 50 different functions that do the same thing.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CloudBotIRC/CloudBot/issues/234#issuecomment-222882591, or mute the thread https://github.com/notifications/unsubscribe/ABZoEUlzmJe6mvjVWmsGJb1M-zztCN2dks5qHPqrgaJpZM4IrCJ4 .
I think you are looking for triggered_command https://github.com/CloudBotIRC/CloudBot/blob/master/cloudbot/event.py#L335
<3 i love u, thank u edwardslabs