Skip to content

Commit 67e70ae

Browse files
committed
initial commit
0 parents  commit 67e70ae

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.env

protobot.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"""
2+
Author: Konnor Klercke
3+
File: protobot.py
4+
Purpose: Discord bot for my personal server
5+
"""
6+
7+
8+
#################################
9+
#
10+
import os #
11+
import discord #
12+
from dotenv import load_dotenv #
13+
#
14+
#################################
15+
16+
17+
load_dotenv()
18+
token = os.getenv('DISCORD_TOKEN')
19+
20+
client = discord.Client()
21+
22+
@client.event
23+
async def on_ready():
24+
print(f'{client.user} has connected to Discord!')
25+
26+
client.run(token)

0 commit comments

Comments
 (0)