public
imalexnord
read
Discord-Hetzner-Bot
No description yet
Languages
Repository composition by tracked source files.
Python
100%
Create file
Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/discord-hetzner-bot.git
ssh://[email protected]:2222/user/imalexnord/discord-hetzner-bot.git
Trace
gameserver.py
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
gameserver.py
on main
Author
Date
Commit
Line
Code
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 1
from tokens import DISCORD_TOKEN, HETZNER_API_TOKEN
from tokens import DISCORD_TOKEN, HETZNER_API_TOKEN
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 2
from game import *
from game import *
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 3
from settings import BOT_PREFIX, GAMES
from settings import BOT_PREFIX, GAMES
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 4
import discord
import discord
err0x5dd
about 7 years ago
4a1e1f5
Added location infos and possibly fixed some bugs
- Full commit hash
4a1e1f5b44dd695d30018a6f873c5056e0760477- Author
- err0x5dd <[email protected]>
- Date
- about 7 years ago
- Selected line
- 5
import sys
import sys
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 6
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 7
intents = discord.Intents.default()
intents = discord.Intents.default()
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 8
intents.message_content = True # REQUIRED for reading commands
intents.message_content = True # REQUIRED for reading commands
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 9
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 10
client = discord.Client(intents=intents)
client = discord.Client(intents=intents)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 11
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 12
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 13
@client.event
@client.event
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 14
async def on_message(message):
async def on_message(message):
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 15
# we do not want the bot to reply to itself
# we do not want the bot to reply to itself
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 16
if message.author == client.user:
if message.author == client.user:
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 17
return
return
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 18
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 19
if message.content.startswith(BOT_PREFIX + "help"):
if message.content.startswith(BOT_PREFIX + "help"):
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 20
msg = (
msg = (
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 21
"!help - prints this help\n"
"!help - prints this help\n"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 22
"!ping - simple online check\n"
"!ping - simple online check\n"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 23
"!start GAME - starts a server for GAME\n"
"!start GAME - starts a server for GAME\n"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 24
"!stop GAME - stops the server for GAME\n"
"!stop GAME - stops the server for GAME\n"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 25
"!status [GAME] - prints basic infos about the server for GAME\n"
"!status [GAME] - prints basic infos about the server for GAME\n"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 26
"!exit - exit bot script - should restart it when used with systemd service unit"
"!exit - exit bot script - should restart it when used with systemd service unit"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 27
)
)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 28
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 29
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 30
elif message.content.startswith(BOT_PREFIX + "ping"):
elif message.content.startswith(BOT_PREFIX + "ping"):
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 31
msg = "I'm online {0.author.mention}".format(message)
msg = "I'm online {0.author.mention}".format(message)
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 32
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 33
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 34
elif message.content.startswith(BOT_PREFIX + "start"):
elif message.content.startswith(BOT_PREFIX + "start"):
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 35
cmd = message.content.split("start", 1)[1].lower().split()
cmd = message.content.split("start", 1)[1].lower().split()
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 36
if not cmd:
if not cmd:
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 37
msg = "Syntax error:\n!start GAME"
msg = "Syntax error:\n!start GAME"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 38
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 39
return
return
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 40
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 41
msg = f"Game '{cmd[0]}' not found."
msg = f"Game '{cmd[0]}' not found."
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 42
for i in GAMES:
for i in GAMES:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 43
if i.name.lower() == cmd[0]:
if i.name.lower() == cmd[0]:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 44
if i.isRunning() is False:
if i.isRunning() is False:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 45
await client.change_presence(activity=discord.Game(name="starting server..."))
await client.change_presence(activity=discord.Game(name="starting server..."))
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 46
await i.start()
await i.start()
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 47
await client.change_presence(activity=discord.Game(name="ready"))
await client.change_presence(activity=discord.Game(name="ready"))
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 48
msg = i.status()
msg = i.status()
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 49
break
break
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 50
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 51
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 52
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 53
elif message.content.startswith(BOT_PREFIX + "stop"):
elif message.content.startswith(BOT_PREFIX + "stop"):
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 54
cmd = message.content.split("stop", 1)[1].lower().split()
cmd = message.content.split("stop", 1)[1].lower().split()
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 55
if not cmd:
if not cmd:
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 56
msg = "Syntax error:\n!stop GAME"
msg = "Syntax error:\n!stop GAME"
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 57
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 58
return
return
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 59
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 60
msg = f"Game '{cmd[0]}' not found."
msg = f"Game '{cmd[0]}' not found."
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 61
for i in GAMES:
for i in GAMES:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 62
if i.name.lower() == cmd[0]:
if i.name.lower() == cmd[0]:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 63
if i.isRunning() is True:
if i.isRunning() is True:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 64
await client.change_presence(activity=discord.Game(name="stopping server..."))
await client.change_presence(activity=discord.Game(name="stopping server..."))
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 65
await i.stop()
await i.stop()
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 66
await client.change_presence(activity=discord.Game(name="ready"))
await client.change_presence(activity=discord.Game(name="ready"))
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 67
msg = i.status()
msg = i.status()
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 68
break
break
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 69
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 70
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 71
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 72
elif message.content.startswith(BOT_PREFIX + "status"):
elif message.content.startswith(BOT_PREFIX + "status"):
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 73
cmd = message.content.split("status", 1)[1].lower().split()
cmd = message.content.split("status", 1)[1].lower().split()
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 74
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 75
# If no game specified, print all statuses in one message
# If no game specified, print all statuses in one message
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 76
if not cmd:
if not cmd:
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 77
msg = "\n".join(i.status() for i in GAMES)
msg = "\n".join(i.status() for i in GAMES)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 78
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 79
return
return
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 80
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 81
msg = f"Game '{cmd[0]}' not found."
msg = f"Game '{cmd[0]}' not found."
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 82
for i in GAMES:
for i in GAMES:
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 83
if i.name.lower() == cmd[0]:
if i.name.lower() == cmd[0]:
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 84
msg = i.status()
msg = i.status()
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 85
break
break
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 86
await message.channel.send(msg)
await message.channel.send(msg)
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 87
err0x5dd
about 7 years ago
4a1e1f5
Added location infos and possibly fixed some bugs
- Full commit hash
4a1e1f5b44dd695d30018a6f873c5056e0760477- Author
- err0x5dd <[email protected]>
- Date
- about 7 years ago
- Selected line
- 88
elif message.content.startswith(BOT_PREFIX + "exit"):
elif message.content.startswith(BOT_PREFIX + "exit"):
same change
4a1e1f5
Added location infos and possibly fixed some bugs
- Full commit hash
4a1e1f5b44dd695d30018a6f873c5056e0760477- Author
- err0x5dd <[email protected]>
- Date
- about 7 years ago
- Selected line
- 89
sys.exit("exit requested")
sys.exit("exit requested")
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 90
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 91
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 92
@client.event
@client.event
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 93
async def on_ready():
async def on_ready():
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 94
print("Logged in as")
print("Logged in as")
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 95
print(client.user.name)
print(client.user.name)
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 96
print(client.user.id)
print(client.user.id)
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 97
print("------")
print("------")
Alex Carrington
7 months ago
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 98
await client.change_presence(activity=discord.Game(name="ready"))
await client.change_presence(activity=discord.Game(name="ready"))
same change
25636c1
Refactor game and Discord bot logic, remove samples
- Full commit hash
25636c1c18b01d13a70d4374737416c3a5acab1e- Author
- Alex Carrington <[email protected]>
- Date
- 7 months ago
- Selected line
- 99
err0x5dd
over 7 years ago
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 100
same change
d21b0dd
Fuck Windows line seperator
- Full commit hash
d21b0ddd348aa6c47c656a723f54a5e1f08deede- Author
- err0x5dd <[email protected]>
- Date
- over 7 years ago
- Selected line
- 101
client.run(DISCORD_TOKEN)
client.run(DISCORD_TOKEN)