Majesty Gold HD

Majesty Gold HD

评价数不足
Twitch Chat Hero Naming (Improved from before!)
   
奖励
收藏
已收藏
取消收藏
Mod
文件大小
发表于
更新日期
791.506 KB
2022 年 12 月 27 日 下午 6:36
9 月 4 日 下午 7:32
10 项改动说明 ( 查看 )

订阅以下载
Twitch Chat Hero Naming (Improved from before!)

描述
Twitch chat can rename heroes in game with chat commands. Twitch channel doesn't even have to be live!

!join (adds their username to the hero list)
!name _____ (adds a custom named hero to the list, can be turned off)
!remove _____ (remove a name you don't like)

Mod files get downloaded to C:\SteamLibrary\steamapps\workshop\content\73230\2908092423 or your equivalent.

1. Create an Oauth token. Use the following link: https://twitchapps.com/tmi/ to get the OAuth Token for the next step. It looks something like oauth:li8efebxigsupoit6d84291onbem8e

2. In the OAuth.py file, replace the oauth_token value with the new oauth token in the quotes. Save the OAuth.py file.

3. Download Python 3 and install it. https://www.python.org/downloads/release/python-3121/ but any version of Python 3 should work.

4. Run the Twitch Bot.bat file.

5. A command prompt will open and you will be prompted to enter the channel you want to run it on, whether you want chat to custom name heroes (enter at thine own risk with Twitch chat), and how often you want heroes to be custom named.

6. People can now start naming stuff. List will be updated on the next level you start. Rerun the Twitch Bot.bat file if you want a full new set of names.

Try booting the game before starting the script so that Steam Workshop doesn't overwrite your mod files.
Names will be updated on hero spawn, so you'll see different names during their creation bars.

If you have issues, message the mod page or add me and I'll try to help.
Many thanks to Enerril for help coding the last jank part for Majesty. This should work with other mods, so long as they don't mess with the hero_birth function.
12 条留言
Matkatamiba  [作者] 2024 年 1 月 27 日 下午 5:08 
INSANELY better. Removed discord functionality cause it was a mess and the way I figured out for Twitch is just so easy that it's not even worth bothering in Discord.
Matkatamiba  [作者] 2023 年 2 月 12 日 上午 1:47 
Finally got around to updating the thing. Was able to simplify out a few steps + make it work with Discord
Matkatamiba  [作者] 2023 年 2 月 6 日 下午 12:49 
I couldn't really figure out how to make it work with SE, but I did make it work with Discord. I'll take another gander on how to make a SE bot work the way I want it to.
Darkshadoww804 2023 年 2 月 5 日 上午 8:42 
could you make it heapen theat i would be working with SE bots?
Matkatamiba  [作者] 2023 年 1 月 20 日 下午 1:52 
Those are the default ones I thew in. You have to get the list of names from the python file and then compile for the new list to work in game.
Darkshadoww804 2023 年 1 月 20 日 下午 12:02 
it semi works. i get a hero with the name Mc Lovin and Custom named dude. but not people tehat used !join or create (name)
Darkshadoww804 2023 年 1 月 20 日 上午 4:46 
dont hurry. i will test it and gif you feadback if it will work or not with SE
Matkatamiba  [作者] 2023 年 1 月 19 日 下午 11:12 
I'm going to try and make a version that works with StreamElements, since you can write custom commands for that. Will be a few days at least
Matkatamiba  [作者] 2023 年 1 月 19 日 下午 5:14 
It's janky code. I don't know how/if it can be incorporated into stream elements. It's a script that reads chat and pulls info from there off using the Twitch api.
Darkshadoww804 2023 年 1 月 19 日 上午 4:57 
ok. because i want to try it out and donk know if i need to add something to my streamelements bot or not