This commit is contained in:
nin0dev 2024-11-19 08:18:35 -05:00
commit 5fc9fd0171
5 changed files with 70 additions and 0 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
.env
bin
include
lib
lib64
pyvenv.cfg

6
.prettierrc.json Normal file
View file

@ -0,0 +1,6 @@
{
"singleQuote": false,
"tabWidth": 4,
"useTabs": true,
"semi": true
}

16
backend/bot/main.py Normal file
View file

@ -0,0 +1,16 @@
import discord
import discord.types
from dotenv import load_dotenv
import os
load_dotenv()
class Client(discord.Client):
async def on_ready(self):
print("Logged in as", self.user)
async def on_message(self, message: discord.Message):
if message.channel.id not in [1156349646965325824, 1299351968443142228] or message.type != discord.MessageType.auto_moderation_action:
return
client = Client()
client.run(os.environ["TOKEN"])

BIN
duke.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

42
index.html Normal file
View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>How long since a message was blocked in Vencord</title>
<style>
img {
width: 90%;
margin-top: 40px;
}
body {
background-color: #2b2e33;
color: white;
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
}
#counter {
font-size: 4.3rem;
font-family: monospace;
margin: 0;
color: #5865f2;
}
h3 {
font-size: 1rem;
}
</style>
</head>
<body>
<div class="container">
<img src="duke.png" />
<h1>It has been</h1>
<p id="counter">00:00:01</p>
<h3>since a message has been blocked in Vencord.</h3>
<p class="reason">(Low Quality Spam)</p>
</div>
</body>
</html>