-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from suchencjusz/dev
tasks test
- Loading branch information
Showing
26 changed files
with
162 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
1 change: 1 addition & 0 deletions
1
data/data/global/70/a4/5b/70a45b37adf20d85be16525c9a8e8e03.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"list_page","items":[{"id":"maingrp","title":"Primary Group","regexp":"^(main)$","master":1},{"id":"allgrp","title":"All Servers","regexp":".+","master":0}]} |
1 change: 1 addition & 0 deletions
1
data/data/global/73/f2/06/73f2061c54ebbd19ba9bbddd70299297.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":50,"first_page":0,"last_page":0,"length":1,"type":"list"} |
1 change: 1 addition & 0 deletions
1
data/data/global/7d/59/1d/7d591db2f282c22552f4d445fd236154.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"list_page","items":[{"username":"admin"}]} |
1 change: 1 addition & 0 deletions
1
data/data/global/81/f0/77/81f077cc3e3d7f58ba1f2da11fd20297.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"list_page","items":[{"id":"general","title":"General","enabled":1,"username":"admin","modified":1702405390,"created":1702405390,"description":"For events that don't fit anywhere else.","max_children":0}]} |
1 change: 1 addition & 0 deletions
1
data/data/global/83/ab/32/83ab32f287f97e49b1f77a810bfe242d.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"list_page","items":[{"id":"testplug","title":"Test Plugin","enabled":1,"command":"bin/test-plugin.js","username":"admin","modified":1702405390,"created":1702405390,"params":[{"id":"duration","type":"text","size":10,"title":"Test Duration (seconds)","value":60},{"id":"progress","type":"checkbox","title":"Report Progress","value":1},{"id":"burn","type":"checkbox","title":"Burn Memory/CPU","value":0},{"id":"action","type":"select","title":"Simulate Action","items":["Success","Failure","Crash"],"value":"Success"},{"id":"secret","type":"hidden","value":"Will not be shown in Event UI"}]},{"id":"shellplug","title":"Shell Script","enabled":1,"command":"bin/shell-plugin.js","username":"admin","modified":1702405390,"created":1702405390,"params":[{"id":"script","type":"textarea","rows":10,"title":"Script Source","value":"#!/bin/sh\n\n# Enter your shell script code here"},{"id":"annotate","type":"checkbox","title":"Add Date/Time Stamps to Log","value":0},{"id":"json","type":"checkbox","title":"Interpret JSON in Output","value":0}]},{"id":"urlplug","title":"HTTP Request","enabled":1,"command":"bin/url-plugin.js","username":"admin","modified":1702405390,"created":1702405390,"params":[{"type":"select","id":"method","title":"Method","items":["GET","HEAD","POST"],"value":"GET"},{"type":"textarea","id":"url","title":"URL","rows":3,"value":"http://"},{"type":"textarea","id":"headers","title":"Request Headers","rows":4,"value":"User-Agent: Cronicle/1.0"},{"type":"textarea","id":"data","title":"POST Data","rows":4,"value":""},{"type":"text","id":"timeout","title":"Timeout (Seconds)","size":5,"value":"30"},{"type":"checkbox","id":"follow","title":"Follow Redirects","value":0},{"type":"checkbox","id":"ssl_cert_bypass","title":"SSL Cert Bypass","value":0},{"type":"text","id":"success_match","title":"Success Match","size":20,"value":""},{"type":"text","id":"error_match","title":"Error Match","size":20,"value":""}]}]} |
1 change: 1 addition & 0 deletions
1
data/data/global/af/56/5a/af565a097a0cf8d7d5855ecc92c24c34.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"list_page","items":[{"hostname":"main","ip":"172.20.0.3"}]} |
1 change: 1 addition & 0 deletions
1
data/data/global/be/21/ad/be21ad44831ac52d7c3b3c06ec30ab02.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":50,"first_page":0,"last_page":0,"length":3,"type":"list"} |
1 change: 1 addition & 0 deletions
1
data/data/global/bf/10/4a/bf104a19df63f5227cc0e457c353afa7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":50,"first_page":0,"last_page":0,"length":2,"type":"list"} |
1 change: 1 addition & 0 deletions
1
data/data/global/c7/45/9c/c7459c956e50650e77e33cd03ea3b31b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":50,"first_page":0,"last_page":0,"length":0,"type":"list"} |
1 change: 1 addition & 0 deletions
1
data/data/global/d5/34/10/d53410b6a012ac9db284846c1d465e2c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":50,"first_page":0,"last_page":0,"length":1,"type":"list"} |
1 change: 1 addition & 0 deletions
1
data/data/global/e7/3f/47/e73f47df4dd92352849bce2a5d622318.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"page_size":100,"first_page":0,"last_page":0,"length":1,"type":"list"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"username":"admin","password":"$2a$10$VAF.FNvz1JqhCAB5rCh9GOa965eYWH3fcgWIuQFAmsZnnVS/.ye1y","full_name":"Administrator","email":"admin@cronicle.com","active":1,"modified":1702405390,"created":1702405390,"salt":"salty","privileges":{"admin":1}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import requests | ||
|
||
headers = { | ||
'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0IjoxLCJpZCI6IjExODIzNzE2NTgzNDcwNjUzOTQiLCJpYXQiOjE3MDIzOTk1NjJ9.-7jLpvYAKHXagsJt5ADmGHGvt4Qtw5i87J7B_slda3w' | ||
} | ||
|
||
body_commands = [ | ||
{ | ||
"name": "configure channel", | ||
"description": "Ustawia kanał z powiadomieniami", | ||
"type": 1 | ||
}, | ||
{ | ||
"name": "help", | ||
"description": "Pomoc", | ||
"type": 1 | ||
}, | ||
{ | ||
"name": "tracker me", | ||
"description": "Monitoruje konto filmweb", | ||
}, | ||
{ | ||
"name": "tracker cancel", | ||
"description": "Anuluje monitorowanie konta filmweb i usuwa dane z bazy danych", | ||
}, | ||
{ | ||
"name": "tracker stop", | ||
"description": "Anuluje wysyłanie powiadomień na danym serwerze", | ||
}, | ||
{ | ||
"name": "tracker here", | ||
"description": "Dopisuje użytkownika do listy powiadomień na danym serwerze", | ||
}, | ||
{ | ||
"name": "info", | ||
"description": "Informacje o bocie", | ||
} | ||
] | ||
|
||
r = requests.post('https://discordbotlist.com/api/v1/bots/filman/commands', headers=headers, json=body_commands) | ||
|
||
print(r.status_code) |
Binary file not shown.