Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/savelas81/SC2_bot_chat
Chat add on for bots playing SC2
https://github.com/savelas81/SC2_bot_chat
Last synced: 3 months ago
JSON representation
Chat add on for bots playing SC2
- Host: GitHub
- URL: https://github.com/savelas81/SC2_bot_chat
- Owner: savelas81
- Created: 2020-09-22T15:00:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T09:48:51.000Z (about 4 years ago)
- Last Synced: 2024-06-18T01:33:32.867Z (5 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sc2-ai - SC2_bot_chat - utility for sending chat messages (Libraries / Python Libraries)
README
# SC2_bot_chat
Chat add on for bots playing SC2This add on is made to reply to chat messages that bot sees on ladder games.
It saves every chat message from enemy.
Messages will be saved in data/messages.json file.
To add replies for saved messages replace ----- with your reply.
Bot replies after amount of iterations in self.chat_delay (chat_messages.py) since enemy LAST chat message.DO NOT INSULT ANYONE WITH YOUR CHAT MESSAGES!!!
Humans have feelings but bots don't.
At least for now.Installation and usage:
STEP 1:
Copy chat_messages.py in your bot root directory.STEP 2:
Add following lines to your bot:from chat_messages import ChatData as chatdata
__init__
self._chat_data = chatdata()
__on_step__
response = self._chat_data.find_response(opponent_chat_data=self.state.chat, my_id_from_proto = self.player_id)
if response:
await self._client.chat_send(response, team_only=False)STEP 3:
Upload yor bot to ladder and let it run few daysSTEP 4:
Download data directory from ladder.STEP 5:
replace ----- in messages.json file with your replies.
(----- = no response)STEP 6:
ZIP all data directory content!STEP 7:
Upload your zip file on ladder and enjoy "intelectual" bot conversations.Repeat steps 4 to 7 when you want add new responses.
Smileware :D
Use at your own risk.
I'm not taking any responsibility for damaged software, hardware or feelings.