NobGit
public imalexnord read

Discord-Hetzner-Bot

No description yet

Languages

Repository composition by tracked source files.

Python
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
Open commit View diff
1 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 *
Open commit View diff
2 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
Open commit View diff
3 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
Open commit View diff
4 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
Open commit View diff
5 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
Open commit View diff
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()
Open commit View diff
7 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
Open commit View diff
8 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
Open commit View diff
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)
Open commit View diff
10 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
13 @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):
Open commit View diff
14 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
Open commit View diff
15 # 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:
Open commit View diff
16 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
Open commit View diff
17 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
Open commit View diff
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"):
Open commit View diff
19 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 = (
Open commit View diff
20 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"
Open commit View diff
21 "!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"
Open commit View diff
22 "!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"
Open commit View diff
23 "!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"
Open commit View diff
24 "!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"
Open commit View diff
25 "!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"
Open commit View diff
26 "!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
        )
Open commit View diff
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)
Open commit View diff
28 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
Open commit View diff
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"):
Open commit View diff
30 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)
Open commit View diff
31 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)
Open commit View diff
32 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
Open commit View diff
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"):
Open commit View diff
34 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()
Open commit View diff
35 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:
Open commit View diff
36 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"
Open commit View diff
37 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)
Open commit View diff
38 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
Open commit View diff
39 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
Open commit View diff
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."
Open commit View diff
41 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:
Open commit View diff
42 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]:
Open commit View diff
43 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:
Open commit View diff
44 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..."))
Open commit View diff
45 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()
Open commit View diff
46 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"))
Open commit View diff
47 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()
Open commit View diff
48 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
Open commit View diff
49 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
Open commit View diff
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)
Open commit View diff
51 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
Open commit View diff
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"):
Open commit View diff
53 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()
Open commit View diff
54 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:
Open commit View diff
55 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"
Open commit View diff
56 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)
Open commit View diff
57 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
Open commit View diff
58 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
Open commit View diff
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."
Open commit View diff
60 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:
Open commit View diff
61 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]:
Open commit View diff
62 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:
Open commit View diff
63 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..."))
Open commit View diff
64 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()
Open commit View diff
65 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"))
Open commit View diff
66 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()
Open commit View diff
67 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
Open commit View diff
68 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
Open commit View diff
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)
Open commit View diff
70 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
Open commit View diff
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"):
Open commit View diff
72 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()
Open commit View diff
73 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
Open commit View diff
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
Open commit View diff
75 # 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:
Open commit View diff
76 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)
Open commit View diff
77 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)
Open commit View diff
78 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
Open commit View diff
79 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
Open commit View diff
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."
Open commit View diff
81 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:
Open commit View diff
82 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]:
Open commit View diff
83 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()
Open commit View diff
84 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
Open commit View diff
85 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)
Open commit View diff
86 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
Open commit View diff
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"):
Open commit View diff
88 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")
Open commit View diff
89 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
Open commit View diff
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
Open commit View diff
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
Open commit View diff
92 @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():
Open commit View diff
93 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")
Open commit View diff
94 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)
Open commit View diff
95 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)
Open commit View diff
96 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("------")
Open commit View diff
97 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"))
Open commit View diff
98 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
Open commit View diff
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
Open commit View diff
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)
Open commit View diff
101 client.run(DISCORD_TOKEN)