Skip to content

Commit c460e2c

Browse files
committed
README
1 parent 82a7f8c commit c460e2c

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
11
# SELevelCommands
2-
Sending chat messages depending on sender user leved
2+
Allow you to get different bot responses depending on your user level.
3+
4+
## Installation
5+
### Composer
6+
Install dependencies using `/api/composer.json`
7+
8+
### SQL Database
9+
Create table using the [levelPatterns.sql](../blob/main/levelPatterns.sql) file
10+
11+
### Web server
12+
Download the repository, place all the files in your desired destination.
13+
14+
Locate `/api/config.example.php` copy the file rename to `config.php` and fill your credentials as explained here:
15+
* `$key` - random string used to prevent unwanted requests
16+
* `$bearer` - Bearer token found [here](https://streamelements.com/dashboard/account/channels) (after clicking *"show secrets"*)
17+
* `$db` - credentials for accessing database
18+
19+
## Usage
20+
### Adding patters
21+
**This build is still in beta, so only way to add patterns is directly through SQL database**
22+
> Please bear in mind, that in future, pattern id will be 10 random characters
23+
24+
### Calling patterns
25+
After you have successfully added pattern to your database, you can add command to StreamElements following this example:
26+
```
27+
${customapi.example.com/selevelcommands/api/chat.php?key=75fBu4EP4U2YTTbh&pattern=jNACabNDNA&level=${sender.level}}
28+
```

0 commit comments

Comments
 (0)