-
Notifications
You must be signed in to change notification settings - Fork 13
/
egg-pterodactyl-fragbot.json
42 lines (42 loc) · 2.14 KB
/
egg-pterodactyl-fragbot.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T19:44:14+00:00",
"name": "fragbot",
"author": "parker@parkervcp.com",
"description": "The fragforce discord bot.\r\n\r\nlocated at https://github.com/fragforce/fragbot",
"features": null,
"docker_images": {
"ghcr.io/parkervcp/yolks:alpine": "ghcr.io/parkervcp/yolks:alpine"
},
"file_denylist": [],
"startup": "./fragbot",
"config": {
"files": "{\r\n \"config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"token\": \"{{server.build.env.DISCORD_TOKEN}}\"\r\n }\r\n }\r\n}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Bot is now running\"\r\n}",
"stop": "shutdown"
},
"scripts": {
"installation": {
"container": "golang:1.12-alpine",
"entrypoint": "ash",
"script": "#!/bin/ash\r\n# fragbot Installation Script\r\n#\r\n# Server Files: /mnt/server\r\nexport GOPATH=$HOME/go\r\nexport PATH=$GOROOT/bin:$GOPATH/bin:$PATH\r\n\r\ncd\r\n\r\napk add --no-cache --update git\r\n\r\necho \"pulling the fragbot repo\"\r\n\r\ngit clone https://github.com/fragforce/fragbot.git\r\n\r\ncd fragbot/\r\n\r\ngo mod download\r\n\r\necho \"building fragbot\"\r\n\r\ngo build \r\n\r\necho \"build complete copying parkertron and example configs over\"\r\n\r\ncp fragbot /mnt/server/\r\n\r\nif [ -f /mnt/server/config.json ]; then\r\n echo \"config file exists already\"\r\nelse\r\n cp -r /root/fragbot/config.example.json /mnt/server/config.json\r\nfi\r\n\r\necho \"Install complete. If you watched this. Congrats.\""
}
},
"variables": [
{
"name": "Discord Bot Token",
"description": "The token that is to be used for the bot.",
"env_variable": "DISCORD_TOKEN",
"default_value": "ThisNeedsToBeChanged",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:128",
"field_type": "text"
}
]
}