Update app.py
Browse files
app.py
CHANGED
|
@@ -1,204 +1,40 @@
|
|
| 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 |
-
"ALWAYS_ONLINE": {
|
| 43 |
-
"description": "Make it true if want always online.",
|
| 44 |
-
"required": false,
|
| 45 |
-
"value": "false"
|
| 46 |
-
},
|
| 47 |
-
|
| 48 |
-
"AUTO_VOICE": {
|
| 49 |
-
"description": "Make it true if want automatic voice reply .",
|
| 50 |
-
"required": false,
|
| 51 |
-
"value": "false"
|
| 52 |
-
},
|
| 53 |
-
|
| 54 |
-
"AUTO_REPLY": {
|
| 55 |
-
"description": "Make it true if you want automatic reply.",
|
| 56 |
-
"required": false,
|
| 57 |
-
"value": "false"
|
| 58 |
-
},
|
| 59 |
-
|
| 60 |
-
"ADMIN_STATUS": {
|
| 61 |
-
"description": "make it true if want know who promote or demote a member .",
|
| 62 |
-
"required": false,
|
| 63 |
-
"value": "false"
|
| 64 |
-
},
|
| 65 |
-
|
| 66 |
-
"WELCOME": {
|
| 67 |
-
"description": "make it true if want welcome message in groups.",
|
| 68 |
-
"required": false,
|
| 69 |
-
"value": "true"
|
| 70 |
-
},
|
| 71 |
-
|
| 72 |
-
"GOODBYE": {
|
| 73 |
-
"description": "make it true if want goodbye message in groups.",
|
| 74 |
-
"required": false,
|
| 75 |
-
"value": "false"
|
| 76 |
-
},
|
| 77 |
-
|
| 78 |
-
"AUTO_STICKER": {
|
| 79 |
-
"description": "Make it true if you want automatic sticker.",
|
| 80 |
-
"required": false,
|
| 81 |
-
"value": "false"
|
| 82 |
-
},
|
| 83 |
-
|
| 84 |
-
"AUTO_STATUS_SEEN": {
|
| 85 |
-
"description": "Make it true for automatic status seen.",
|
| 86 |
-
"required": true,
|
| 87 |
-
"value": "true"
|
| 88 |
-
},
|
| 89 |
-
|
| 90 |
-
"MENTION_REPLY": {
|
| 91 |
-
"description": "make it true if want mention reply if someone menetion you.",
|
| 92 |
-
"required": false,
|
| 93 |
-
"value": "false"
|
| 94 |
-
},
|
| 95 |
-
|
| 96 |
-
"AUTO_STATUS_REACT": {
|
| 97 |
-
"description": "make it true for automatic status reaction or like.",
|
| 98 |
-
"required": true,
|
| 99 |
-
"value": "true"
|
| 100 |
-
},
|
| 101 |
-
|
| 102 |
-
"AUTO_STATUS_REPLY": {
|
| 103 |
-
"description": "Make it true for auto reply msg on status seen.",
|
| 104 |
-
"required": false,
|
| 105 |
-
"value": "false"
|
| 106 |
-
},
|
| 107 |
-
|
| 108 |
-
"AUTO_STATUS_MSG": {
|
| 109 |
-
"description": "Type custom message on status reply",
|
| 110 |
-
"required": true,
|
| 111 |
-
"value": "*SEEN YOUR STATUS JUST NOW ALI-MD 🍒*"
|
| 112 |
-
|
| 113 |
-
},
|
| 114 |
-
|
| 115 |
-
"BOT_NAME": {
|
| 116 |
-
"description": "Type here the bot name.",
|
| 117 |
-
"required": false,
|
| 118 |
-
"value": "𓆩ု᪳𝐀ɭīī 𝐌Ɗှ᪳𓆪"
|
| 119 |
-
|
| 120 |
-
},
|
| 121 |
-
|
| 122 |
-
"ALIVE_IMG": {
|
| 123 |
-
"description": "put here the bot Menu url if you don't have you can use this public url.",
|
| 124 |
-
"required": true,
|
| 125 |
-
"value": "https://files.catbox.moe/6ku0eo.jpg"
|
| 126 |
-
},
|
| 127 |
-
|
| 128 |
-
"DELETE_LINK": {
|
| 129 |
-
"description": "Make it true if you want bot auto delete group link.",
|
| 130 |
-
"required": false,
|
| 131 |
-
"value": "false"
|
| 132 |
-
},
|
| 133 |
-
|
| 134 |
-
"ANTI_LINK": {
|
| 135 |
-
"description": "Make it true if you want bot auto wearing group link.",
|
| 136 |
-
"required": false,
|
| 137 |
-
"value": "false"
|
| 138 |
-
},
|
| 139 |
-
|
| 140 |
-
"ANTI_BAD_WORD": {
|
| 141 |
-
"description": "Make it true if you want bot auto delete bad words.",
|
| 142 |
-
"required": false,
|
| 143 |
-
"value": "false"
|
| 144 |
-
},
|
| 145 |
-
|
| 146 |
-
"AUTO_RECORDING": {
|
| 147 |
-
"description": "Make it true if you want auto recoding.",
|
| 148 |
-
"required": false,
|
| 149 |
-
"value": "false"
|
| 150 |
-
},
|
| 151 |
-
|
| 152 |
-
"AUTO_TYPING": {
|
| 153 |
-
"description": "Make it true if you want auto typing.",
|
| 154 |
-
"required": false,
|
| 155 |
-
"value": "false"
|
| 156 |
-
},
|
| 157 |
-
|
| 158 |
-
"AUTO_REACT": {
|
| 159 |
-
"description": "Make it true if you want react on every message.",
|
| 160 |
-
"required": false,
|
| 161 |
-
"value": "false"
|
| 162 |
-
},
|
| 163 |
-
|
| 164 |
-
"OWNER_REACT": {
|
| 165 |
-
"description": "Make it true if you want react on bot number.",
|
| 166 |
-
"required": false,
|
| 167 |
-
"value": "false"
|
| 168 |
-
},
|
| 169 |
-
|
| 170 |
-
"CUSTOM_REACT": {
|
| 171 |
-
"description": "Make it true if you want custom reactions.",
|
| 172 |
-
"required": false,
|
| 173 |
-
"value": "false"
|
| 174 |
-
|
| 175 |
-
},
|
| 176 |
-
|
| 177 |
-
"CUSTOM_REACT_EMOJIS": {
|
| 178 |
-
"description": "put here custom react react emojis.",
|
| 179 |
-
"required": false,
|
| 180 |
-
"value": "💝,💖,💗,❤️🩹,❤️,🧡,💛,💚,💙,💜,🤎,🖤,🤍"
|
| 181 |
-
},
|
| 182 |
-
|
| 183 |
-
"ANTI_DEL_PATH": {
|
| 184 |
-
"description": "if you want true make it your bot number .antidelete on",
|
| 185 |
-
"required": false,
|
| 186 |
-
"value": "log"
|
| 187 |
-
},
|
| 188 |
-
|
| 189 |
-
"READ_MESSAGE": {
|
| 190 |
-
"description": "Make it true if you want bot read your all sms just now.",
|
| 191 |
-
"required": false,
|
| 192 |
-
"value": "false"
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
},
|
| 196 |
-
|
| 197 |
-
"buildpacks": [
|
| 198 |
-
{
|
| 199 |
-
"url": "https://github.com/heroku/heroku-buildpack-nodejs.git"
|
| 200 |
-
}
|
| 201 |
-
],
|
| 202 |
-
"stack": "heroku-24"
|
| 203 |
-
}
|
| 204 |
-
|
|
|
|
| 1 |
+
from typing import List, Dict
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class Buildpack:
|
| 5 |
+
url: str
|
| 6 |
+
|
| 7 |
+
def __init__(self, url: str) -> None:
|
| 8 |
+
self.url = url
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class Env:
|
| 12 |
+
description: str
|
| 13 |
+
required: bool
|
| 14 |
+
value: str
|
| 15 |
+
|
| 16 |
+
def __init__(self, description: str, required: bool, value: str) -> None:
|
| 17 |
+
self.description = description
|
| 18 |
+
self.required = required
|
| 19 |
+
self.value = value
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class Welcome7:
|
| 23 |
+
name: str
|
| 24 |
+
description: str
|
| 25 |
+
logo: str
|
| 26 |
+
keywords: List[str]
|
| 27 |
+
success_url: str
|
| 28 |
+
stack: str
|
| 29 |
+
env: Dict[str, Env]
|
| 30 |
+
buildpacks: List[Buildpack]
|
| 31 |
+
|
| 32 |
+
def __init__(self, name: str, description: str, logo: str, keywords: List[str], success_url: str, stack: str, env: Dict[str, Env], buildpacks: List[Buildpack]) -> None:
|
| 33 |
+
self.name = name
|
| 34 |
+
self.description = description
|
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