mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 23:10:15 +02:00
Deleted unnecessary discord client.
This commit is contained in:
parent
d3c8189c92
commit
7001071820
@ -1,17 +0,0 @@
|
||||
import discord
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
client = discord.Client()
|
||||
|
||||
print('Logging in to Discord as ' + settings.DISCORD_USER_EMAIL)
|
||||
client.login(settings.DISCORD_USER_EMAIL, settings.DISCORD_USER_PASSWORD)
|
||||
if not client.is_logged_in:
|
||||
print('Logging in to Discord failed')
|
||||
raise ValueError('Supplied Discord credentials failed login')
|
||||
|
||||
@client.event
|
||||
def on_ready():
|
||||
server = client.servers[0]
|
||||
user = client.user
|
||||
print('Connected as ' + user.name)
|
Loading…
x
Reference in New Issue
Block a user