# Another noob trying to get his bot named

**URL:** <https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465>\
**Category:** Chat and IRC\
**Created:** [April 26, 2021, 8:29pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465 "2021-04-26T20:29:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoratheardent](https://avatars.discourse-cdn.com/v4/letter/z/ee59a6/32.png) [@zoratheardent](https://discuss.dev.twitch.com/u/zoratheardent)\
**Post date:** [April 26, 2021, 8:29pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465/1 "2021-04-26T20:29:16Z")

</div>

Hi,

I understand bot name questions get asked a lot, but I couldn’t find my scenario.

I have two accounts, one main and one bot account. I followed these steps:  
1 I created an application on my bot twitch account.  
2 I took the client ID from that application to use with my oauth call to [https://id.twitch.tv/oauth2/authorize](https://id.twitch.tv/oauth2/authorize)  
3 I used the access\_token I get back (after allowing access to my main account)  
4 I run my bot, it connects properly  
5 The username for the bot is still my main account username  
(I do see my bot’s name on my main account under settings -\> connections)

My auth url for getting the bot access\_token:  
[https://id.twitch.tv/oauth2/authorize?client\_id=${this.botClientID}&redirect\_uri=http://localhost:3000/botAuth&response\_type=token&scope=${this.scope}](https://id.twitch.tv/oauth2/authorize?client_id=%24%7Bthis.botClientID%7D&redirect_uri=http://localhost:3000/botAuth&response_type=token&scope=%24%7Bthis.scope%7D)

If someone would be so kind to enlighten me I would be very grateful.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 26, 2021, 8:30pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465/2 "2021-04-26T20:30:50Z")

</div>

A bot account is the same as a user account.

So you just need to go thru the oAuth flow whilst logged in to your bot account. Rather than going thru the oAuth flow as you.

---

<div class="post-metadata">

**Author:** ![zoratheardent](https://avatars.discourse-cdn.com/v4/letter/z/ee59a6/32.png) [@zoratheardent](https://discuss.dev.twitch.com/u/zoratheardent)\
**Post date:** [April 26, 2021, 9:05pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465/3 "2021-04-26T21:05:46Z")

</div>

Barry, you legend you.

I was running my bot through the same browser my main account was logged into. When I ran it via an incognito window it worked.

Follow up question is then, how do I get permissions for it to actually moderate my main account channel? It doesn’t seem to have permission currently. Even though it’s visible under my connections and I called the oath with scope chat:read+chat:edit+channel:moderate.

---

<div class="post-metadata">

**Author:** ![zoratheardent](https://avatars.discourse-cdn.com/v4/letter/z/ee59a6/32.png) [@zoratheardent](https://discuss.dev.twitch.com/u/zoratheardent)\
**Post date:** [April 26, 2021, 9:14pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465/4 "2021-04-26T21:14:02Z")

</div>

I found it. Mark the bod as a moderator on your main profile.

Thanks again Barry.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [May 26, 2021, 9:14pm UTC](https://discuss.dev.twitch.com/t/another-noob-trying-to-get-his-bot-named/31465/5 "2021-05-26T21:14:06Z")

</div>

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