Inital Commit

This commit is contained in:
kokofixcomputers-bot 2025-05-17 20:46:21 -07:00
commit 5444d7cb35
27 changed files with 4792 additions and 0 deletions

BIN
DiscordLevelingSystem.db Normal file

Binary file not shown.

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 kokofixcomputers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# superior
Superior is a discord bot made for `The Scratch Community`!
Join the discord server! [Join](https://discord.gg/u4zH4fzX6N)
<iframe src="https://discord.com/widget?id=932846632586858507&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
This is still in active development!
This is not made for other servers. So if may be hard to make it work with your server(s)

1
__init__.py Normal file
View File

@ -0,0 +1 @@
print("hi")

1
blocked_words.json Normal file
View File

@ -0,0 +1 @@
{"blocked_words": []}

48
config.json Normal file
View File

@ -0,0 +1,48 @@
{
"guild_id": "932846632586858507",
"guild_name": "Superior Studios",
"member_count_channel_id": "1228358686729310228",
"role_id_assign_upon_join": "1216043084123738186",
"role_id_assign_upon_join2": "1156399413032394763",
"role_id_assign_upon_join3": "1290168054503706725",
"member_count_channel_name": "Members :",
"discadia_webhook_bot_id": "1234272102341673071",
"message_log_channel_id": "1211097494847496252",
"automod_channel_id": 1211097494847496252,
"partners_channel_id": "1199727989743685793",
"voteproof_assign_1_higher_than_this_role_id": "1216043084085985295",
"ai_channel_id": "1232528811997003836",
"bot_user_id": "1227939773956751370",
"delay": "5",
"max_give_xp": "25",
"min_give_xp": "15",
"emojis": {
"success": ":white_check_mark:",
"failure": ":x:"
},
"Reactionrole": {
"🔴": "1233517755924484136",
"🔵": "1229535663599124491",
"🟢": "1233544209370320997",
"⚫": "1233811769793839214",
"<:superior:1229530749187915816>": "1216043084085985296",
"✨": "1216043084085985298",
"🐞": "1233825637932994684",
"❌": "1216043084060823565"
},
"Reaction_role_description": {
"1233517755924484136": "good looking red",
"1229535663599124491": "not so good blue",
"1233544209370320997": "so old",
"1233811769793839214": "black black heh",
"1216043084085985296": "fan",
"1216043084085985298": "Legendary Fan",
"1233825637932994684": "Bug Hunter",
"1216043084060823565": "Mute yourself"
},
"_comment": "you must use role id in the Reaction_role_description for example red is 1233517755924484136",
"reaction_role_message_id": 1233589276516814920,
"reports_channel_id": "1198629452922490884",
"starboard_emoji": "🥔",
"suggest_post_channel_id": 1216043085470109746
}

12
config.py Normal file
View File

@ -0,0 +1,12 @@
TOKEN = 'discord bot token here'
EMAIL = 'email for huggingface.co'
PASSWD = 'password for huggingface.co'
badword_detector_api_key = 'badword detector api key'
dangercordtoken = 'dangercord toekn'
secrets_api_key = 'who cares'
bump_reminder_channel_id = '1215666389688258590'
message_log_channel_id = '1211097494847496252'
role_id_assign_upon_join = '1156397194375602227'
role_id_assign_upon_join2 = '1156399413032394763'
role_id_assign_upon_join3 = '1290168054503706725'
guild_id = '932846632586858507'

1
cooldowns.json Normal file
View File

@ -0,0 +1 @@
{"_default": {"2": {"daily_cooldown": "2024-04-30T14:44:04.145604", "user_id": "947888996569210911", "weekly_cooldown": "2024-04-30T14:44:04.145604", "monthly_cooldown": "2024-04-30T14:44:04.145604", "yearly_cooldown": "2024-04-30T14:44:04.145604"}}}

2
error_logs.txt Normal file
View File

@ -0,0 +1,2 @@
2024-04-23 20:07:16 - Error: test, Error Code: 7FGFK
2024-04-23 20:57:16 - Error: Invalid conversation id, not in conversation list., Error Code: JGYOI

1
giveaways.json Normal file
View File

@ -0,0 +1 @@
{}

1
jokes.txt Normal file
View File

@ -0,0 +1 @@

5
logs.txt Normal file
View File

@ -0,0 +1,5 @@
2024-10-25 16:31:18 - Error: 404 Client Error: Not Found for url: https://api.scratch.mit.edu/users/snakybot/projects/1031520976/comments?limit=1, Error Code: O9IKD
2024-12-01 18:22:27 - Error: 400 Bad Request (error code: 50035): Invalid Form Body
In communication_disabled_until: Invalid communication disabled timestamp, Error Code: F1TQ2
2024-12-01 18:23:11 - Error: 400 Bad Request (error code: 50035): Invalid Form Body
In communication_disabled_until: Invalid communication disabled timestamp, Error Code: 0YBZT

View File

@ -0,0 +1,43 @@
import os
# DO NOT DELETE
def find_duplicate_defs(file_path):
"""
Finds duplicate function and async function definitions in a Python file.
Args:
file_path (str): The path to the Python file to be scanned.
Returns:
dict: A dictionary where the keys are the function names (regular and async) and the values are lists of line numbers where the function is defined.
"""
function_defs = {}
with open(file_path, 'r') as file:
lines = file.readlines()
for i, line in enumerate(lines):
if line.startswith('def ') or line.startswith('async def '):
if line.startswith('def '):
function_name = line.split('(')[0].split(' ')[1]
else:
function_name = line.split('(')[0].split(' ')[2]
if function_name in function_defs:
function_defs[function_name].append(i+1)
else:
function_defs[function_name] = [i+1]
return {k:v for k, v in function_defs.items() if len(v) > 1}
# Example usage
file_path = 'main.py'
duplicate_defs = find_duplicate_defs(file_path)
if duplicate_defs:
print("Duplicate function definitions found:")
for function_name, line_numbers in duplicate_defs.items():
print(f"Function '{function_name}' is defined on lines: {', '.join(map(str, line_numbers))}")
else:
print("No duplicate function definitions found.")

4480
main.py Normal file

File diff suppressed because it is too large Load Diff

1
mainbank.json Normal file
View File

@ -0,0 +1 @@
{"947888996569210911": {"wallet": 0, "bank": 0}, "1096839213313446019": {"wallet": 1000, "bank": 100000000000000000000000000000766}, "1154204490761785445": {"wallet": 1625, "bank": 0}, "1079345867263328266": {"wallet": 77, "bank": 0}, "907299092957380698": {"wallet": 0, "bank": 0}, "1027949437420576830": {"wallet": 0, "bank": 0}, "1227939773956751370": {"wallet": 0, "bank": 0}, "790640872181202974": {"wallet": 1000, "bank": 0}, "942270788650815519": {"wallet": 1000, "bank": 0}}

22
mainshop.json Normal file
View File

@ -0,0 +1,22 @@
[
{
"name": "Blue",
"price": 500,
"description": "Get a role with the color blue. After purchasing, use /use blue"
},
{
"name": "Nuremberg",
"price": 10000,
"description": "Buy an actual itch.io game!"
},
{
"name": "test",
"price": 11,
"description": "test-do-not-buy"
},
{
"name": "hehe",
"price": 9999999,
"description": "haha"
}
]

105
markdown.md Normal file
View File

@ -0,0 +1,105 @@
# Header 1 #
## Header 2 ##
### Header 3 ### (Hashes on right are optional)
## Markdown plus h2 with a custom ID ## {#id-goes-here}
[Link back to H2](#id-goes-here)
```js
var x = "string";
function f() {
return x;
}
```
**Hi**
<!-- html madness -->
<div class="custom-class" markdown="1">
<div>
nested div
</div>
<script type='text/x-koka'>
function( x: int ) { return x*x; }
</script>
This is a div _with_ underscores
and a & <b class="bold">bold</b> element.
<style>
body { font: "Consolas" }
</style>
</div>
* Bullet lists are easy too
- Another one
+ Another one
This is a paragraph, which is text surrounded by
whitespace. Paragraphs can be on one
line (or many), and can drone on for hours.
Now some inline markup like _italics_, **bold**,
and `code()`. Note that underscores
in_words_are ignored.
````application/json
{ value: ["or with a mime type"] }
````
> Blockquotes are like quoted text in email replies
>> And, they can be nested
1. A numbered list
2. Which is numbered
3. With periods and a space
And now some code:
// Code is just text indented a bit
which(is_easy) to_remember();
And a block
~~~
// Markdown extra adds un-indented code blocks too
if (this_is_more_code == true && !indented) {
// tild wrapped code blocks, also not indented
}
~~~
Text with
two trailing spaces
(on the right)
can be used
for things like poems
### Horizontal rules
* * * *
****
--------------------------
![picture alt](/images/photo.jpeg "Title is optional")
## Markdown plus tables ##
| Header | Header | Right |
| ------ | ------ | -----: |
| Cell | Cell | $10 |
| Cell | Cell | $20 |
* Outer pipes on tables are optional
* Colon used for alignment (right versus left)
## Markdown plus definition lists ##
Bottled water
: $ 1.25
: $ 1.55 (Large)
Milk
Pop
: $ 1.75
* Multiple definitions and terms are possible
* Definitions can include multiple paragraphs too
*[ABBR]: Markdown plus abbreviations (produces an <abbr> tag)

1
message_log.json Normal file

File diff suppressed because one or more lines are too long

1
nuremberg.json Normal file
View File

@ -0,0 +1 @@
{"keys": ["no keys", "lol"]}

1
partners.json Normal file
View File

@ -0,0 +1 @@
[]

BIN
reaction_roles.db Normal file

Binary file not shown.

24
requirements.txt Normal file
View File

@ -0,0 +1,24 @@
aiohttp==3.7.4.post0
async-timeout==3.0.1
attrs==21.4.0
cffi==1.14.5
chardet==4.0.0
colorama==0.4.4
cryptography==3.4.7
discord.py==2.1.0
idna==3.3
tinydb==4.8.0
multidict==6.0.2
discordLevelingSystem==1.2.1
pycparser==2.20
PyNaCl==1.5.0
requests==2.31.0
pyspnego==0.1.5
six==1.15.0
toml==0.10.2
typing_extensions==4.1.1
yarl==1.7.2
youtube-dl==2021.12.17
numexpr
hugchat==0.4.5
emoji

1
unverifieddb.json Normal file
View File

@ -0,0 +1 @@
{"_default": {"1": {"discord_id": "snakygames", "scratch_username": "kurisotofa"}, "2": {"discord_id": "kokofixcomputers", "scratch_username": "kokofixcomputers"}, "3": {"discord_id": "pablodacm", "scratch_username": "CMcoperation"}, "4": {"discord_id": "pablodacm", "scratch_username": "CMcoperation"}, "5": {"discord_id": ".anthowizard", "scratch_username": "survivaI"}, "6": {"discord_id": ".anthowizard", "scratch_username": "survivaI"}, "7": {"discord_id": ".anthowizard", "scratch_username": "Anthowizard"}, "8": {"discord_id": "sevice_", "scratch_username": "urlocalcreator"}, "9": {"discord_id": "rangdon", "scratch_username": "rangdonishere"}, "10": {"discord_id": ".carlosspicy", "scratch_username": "vr_man-20-"}}}

1
verifieddb.json Normal file
View File

@ -0,0 +1 @@
{"_default": {"1": {"discord_id": "882529070217302047", "scratch_url": "sss"}, "2": {"discord_id": "dubelyer", "scratch_url": "https://scratch.mit.edu/users/thatoneptfan"}, "3": {"discord_id": "kokofixcomputers", "scratch_url": "test"}, "4": {"discord_id": "1230463872775749665", "scratch_url": "https://scratch.mit.edu/users/misasana"}, "5": {"discord_id": "1096839213313446019", "scratch_url": "https://scratch.mit.edu/users/kokofixcomputers"}, "6": {"discord_id": "1205307164927860747", "scratch_url": "https://scratch.mit.edu/users/kokofixcomputers_tes"}, "7": {"discord_id": "1278463232377360486", "scratch_url": "https://scratch.mit.edu/users/CMCoperation"}, "8": {"discord_id": "1273015985904816201", "scratch_url": "https://scratch.mit.edu/users/anthowizard"}, "9": {"discord_id": "638499157710995465", "scratch_url": "https://scratch.mit.edu/users/KEDeX"}, "10": {"discord_id": "1125940452282093618", "scratch_url": "https://scratch.mit.edu/users/coolcats153122"}, "11": {"discord_id": "1011986015235358780", "scratch_url": "https://scratch.mit.edu/users/Slawa_1"}, "12": {"discord_id": "777872608791756800", "scratch_url": "https://scratch.mit.edu/users/Fluffygamer_"}, "13": {"discord_id": "874727562587304046", "scratch_url": "https://scratch.mit.edu/users/gamerpikacu190"}, "14": {"discord_id": "1105777959538798635", "scratch_url": "https://scratch.mit.edu/users/GameReefProductions"}, "15": {"discord_id": "353751709954211840", "scratch_url": "https://scratch.mit.edu/users/mynameinrobloxisrob"}, "16": {"discord_id": "1220772720644591660", "scratch_url": "https://scratch.mit.edu/users/-_-Figure-_-"}}}

1
voteproofedrole.json Normal file
View File

@ -0,0 +1 @@
{"1096839213313446019": true, "1096839213313446019_id": "1299226376875937812", "790640872181202974": true, "790640872181202974_id": "1299412020268896256"}

7
votes.json Normal file
View File

@ -0,0 +1,7 @@
{
"1096839213313446019": true,
"947888996569210911": true,
"790640872181202974": true,
"1220772720644591660": true,
"1096839213313446019": true
}

1
warnings.json Normal file
View File

@ -0,0 +1 @@
{"1205307164927860747": ["breaking the server", "breaking the server again", "breaking the rules again again", "testyhaha"], "842473601965883434": ["Posting NSFW links in The Scratch Community"]}