How can I do a command that. when a user uses it, if he uses @touser it appears but if not the bot …

Asked Nov 12, 2021·1 reply·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

1 reply

Try with this, it should work:
$(eval let a="$(query)"; if(!"$(query)"){"$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))"}else{"$(query)"}})

The only thing is I used the Query of the messsage not the ToUser but it works.