Youtube to Discord !command

Is there a script for sending commands from Youtube chat to Discord channel.


Get posted in a text channel on Discord by Nightbot


Go to the settings of the Discord text channel where you want to receive the messages. Navigate to the Webhook settings and create a new webhook. Copy the webhook URL at the bottom of the webhook menu.

YouTube commands are limited to 200 characters so I’ve set up two commands that work together to send a message to your Discord chat, !aa and _!aa (only !aa will be used directly). Replace WEBHOOK_URL with your webhook URL.

!addcom -cd=5 !aa -a=_!aa url=$(querystring WEBHOOK_URL)&content=$(querystring)

!addcom -cd=5 _!aa $(urlfetch$(query))

For anyone wondering how to set up a similar command for Twitch:

$(urlfetch$(querystring WEBHOOK_URL)&content=$(querystring))

So i make one comand named !aa and put the folowing text in the Alis tab?
!addcom -cd=5 !aa -a=_!aa url=$(querystring WEBHOOK_URL)&content=$(querystring)

And then a _!aa comand and put the text in the Alias tab to?

!addcom -cd=5 _!aa $(urlfetch$(query))

If you’re adding the commands through the dashboard:

For !aa
Put url=$(querystring WEBHOOK_URL)&content=$(querystring) in Message
Put _!aa in Alias

For _!aa
Put $(urlfetch$(query)) in Message


It works! Thank you so much!!!

So it works,
My guess is that other bots know that its a bot sending the massage now, is there any way to make it ether look like im sending it or that its like a normal massage from a user?

I don’t think that’s possible. Automated messages sent from Discord bots and Discord webhooks will always come with the “bot” tag.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.