buenos dias existe manera de crear un comando tipo !vips o !mods y que el bot me responda con los nombres que estan conectados? es decir !vips y aunque tenga 30 vips en el canal el bot solo me responda mediante texto de los que estan en online
Current !mods and !vips commands
3 replies
Hey @Peppy Sheep!
We only offer support in English.
Please use the search bar before opening a new topic as I already answered that question:
/t/show-current-mods-in-chat-command/1534605597201273058
• !mods:
$(eval a=$(urlfetch json http://tmi.twitch.tv/group/user/$(channel)/chatters).chatters.moderators; a.length<1?`No moderator currently online`:`Moderator currently online: ${a.join(', ')}`.slice(0,400))
• !vips:
$(eval a=$(urlfetch json http://tmi.twitch.tv/group/user/$(channel)/chatters).chatters.vips; a.length<1?`No VIP currently online`:`VIP currently online: ${a.join(', ')}`.slice(0,400))
Yes, use the $(user) variable, simply put it where you want the name to appear in the messages.
Please consider reading the documentation.