File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments