Skip to content

Commit

Permalink
Merge pull request #45 from martig3/cs2-refactor
Browse files Browse the repository at this point in the history
Cs2 refactor
  • Loading branch information
martig3 authored Oct 14, 2023
2 parents 549f026 + 5412628 commit cbcb035
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 258 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "csgo-discord-scrimbot"
version = "0.3.1"
version = "0.4.0"
authors = ["MartinWienc <[email protected]>"]
edition = "2021"

Expand All @@ -23,3 +23,4 @@ dotenvy = "0.15.6"
env_logger = "0.10.0"
log = "*"
futures = "0.3.28"
steamid = { git = "https://github.com/JohnPeel/steamid" }
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Discord bot for managing, automating & organizing 10 man scrims in CSGO
- Map Vote
- Captain pick & player draft
- Starting side pick
- Automatically starts CSGO server & prints out connection info
- Automatically starts CS2 server & prints out connection info
- Custom team names
- Autoclear queue
- Auto assign discord role to user on queue join
Expand All @@ -27,23 +27,20 @@ Run your platform executable with the following `config/config.yaml` file:
```yaml
autoclear_hour: <0-24> -- optional
post_setup_msg: GLHF! -- optional
server:
id: <your dathost server id>
url: <your dathost server url>
dathost:
username: <your dathost username/email>
password: <your dathost password>
match_end_url: <your match end url>
username: [email protected]
password: Theemprah1122!
server_id: dathost server id
match_end_url: match-end webhook url
discord:
token: <discord bot token>
admin_role_id: <a discord role id for admins>
privileged_role_ids: [ string list of discord role ids ] -- optional
team_a_channel_id: <a discord text channel id> -- optional
team_b_channel_id: <a discord text channel id> -- optional
assign_role_id: <a dicord role id to assign for user on queue join> -- optional
scrimbot_api_config: -- optional, experimental section
scrimbot_api_config:
scrimbot_api_url: <scrimbot-api url>
scrimbot_api_user: <scrimbot-api username>
scrimbot_api_password: <scrimbot-api password>
scrimbot_api_token: <scrimbot-api auth token>
```
**Note:** Make sure to only allow the bot to listen/read messages in one channel only via the discord server settings -> integrations options.
Loading

0 comments on commit cbcb035

Please sign in to comment.