# Auto Known Bots List

**URL:** <https://extensions.streamer.bot/t/auto-known-bots-list/109>\
**Category:** Approved\
**Tags:** chat, twitch\
**Created:** [June 29, 2023, 3:47am UTC](https://extensions.streamer.bot/t/auto-known-bots-list/109 "2023-06-29T03:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://extensions.streamer.bot/uploads/default/original/1X/8c1c6d09fd393c18f49e18a311f47e0b4331362c.png) [@system](https://extensions.streamer.bot/u/system)\
**Post date:** [June 29, 2023, 3:47am UTC](https://extensions.streamer.bot/t/auto-known-bots-list/109/1 "2023-06-29T03:47:19Z")

</div>

# Description

Using this Extension you will be able to add known bots to a group, this does not ban them however it allows you to exclude them from `randomUser` type events.

# Import Code

[UpdateKnownBotsv1.0.1.sb](https://extensions.streamer.bot/uploads/short-url/duwkco8FQIgcQQQezmrKH6tqU1t.sb) (2.9 KB)

**ChangeLog**  
Update CPH.UserInGroup & CPH.AddUserToGroup Methods  
Update Import Code Version Compatibility

# Installation

In Streamer.bot in select `Import` from the top left.  
Copy the `Import Code` and paste it into the `Import String`.

It should compile from import but it if doesn’t you will need the following References

```auto
mscorlib.dll
System.dll
System.Net.dll
System.IO.dll

```

After you’ve imported the code you will need to create a group called `Bots` if you call it anything else you will need to adjust it in the Action.

 ![groupbots](https://extensions.streamer.bot/uploads/default/original/1X/1b5a7ebd1192afd60b8634e472767332f00ae926.png)

Then you can create a trigger, you can use a command or a timed action however once it is set up and triggered it will add the bots to the group.

 ![groupbotsfull](https://extensions.streamer.bot/uploads/default/original/1X/5239f1a82284643951c2a9eab480aea8a46264bb.png)

There is a setting if you want to you can save these names to a file, you will just need to make sure that the `saveNames` is set to `True` and you’ve entered the file path in `savePath`

# Contributors

- [PapaBearDoes](https://www.twitch.tv/PapaBearDoes)

---

<div class="post-metadata">

**Author:** ![lebluxtv](https://extensions.streamer.bot/user_avatar/extensions.streamer.bot/lebluxtv/32/287_2.png) [@lebluxtv](https://extensions.streamer.bot/u/lebluxtv)\
**Post date:** [February 28, 2024, 10:44am UTC](https://extensions.streamer.bot/t/auto-known-bots-list/109/2 "2024-02-28T10:44:08Z")

</div>

ready for 0.2.3 :  
Update code to use updated group method

```auto
CPH.UserInGroup(botName, Platform.Twitch, botGroup); 
CPH.AddUserToGroup(botName, Platform.Twitch, botGroup);

```

# Description

Using this Extension you will add known bots to a group, this does not ban them however it allows you to exclude them from `randomUser` type events.

# Import Code

[Auto Known Bots List .sb](https://extensions.streamer.bot/uploads/short-url/gNLmSMIP3Wbdpku8SkPdkQX0SEz.sb) (3.3 KB)

# Installation

In Streamer.bot in select `Import` from the top left.  
Drag & Drop the `Auto Known Bots List .sb` file to the import string field.

It should compile from import but it if doesn’t you will need the following References

```auto
mscorlib.dll
System.dll
System.Net.dll
System.IO.dll

```

After you’ve imported the code you will need enable the command [!updateBotsList] or create another, or even use another Trigger such as Timed Action.  
This will automatically create the Group, but won’t set it as a Bots Group by default, to change it, just right click and set it to `YES`

 ![image](https://extensions.streamer.bot/uploads/default/original/2X/f/fc3c2e73f61152c6f89338534f1305aa1b65cdc3.png)

There is a setting if you want to you can save these names to a file, you will just need to make sure that the `saveNames` is set to `True` and you’ve entered the file path in `savePath`

# Contributors

- [PapaBearDoes](https://www.twitch.tv/PapaBearDoes)
- [LeBluxTV](https://www.twitch.tv/lebluxtv)
