summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2026-01-08 22:54:28 -0500
committerSamuel Johnson <[email protected]>2026-01-08 22:54:28 -0500
commit3d2380cb6102cd9ddc153527d5dda05ed294d3fa (patch)
tree319179a5566b91313feadd4d8f033808e6eedab4
But it was a beginning
-rw-r--r--.gitignore7
-rw-r--r--src/main.py20
2 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d942c0d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+.env
+.venv
+
+*.pyc
+*.swp
+
+__pycache__/
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..33affa2
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,20 @@
+from dotenv import dotenv_values
+from discord.ext import commands
+
+import discord
+import os
+
+config = {
+ **dotenv_values(".env"),
+ **os.environ,
+ }
+
+intents = discord.Intents.default()
+intents.message_content = True
+bot = commands.Bot(command_prefix="Sigmar! ", intents=intents)
+
+async def ping(ctx):
+ await ctx.send("pong")
+
+bot.run(config['token'])