Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
Remove util.token module entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
b1naryth1ef committed Jan 17, 2018
1 parent a8ebb0f commit 76b34a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions disco/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def disco_main(run=False):

from disco.client import Client, ClientConfig
from disco.bot import Bot, BotConfig
from disco.util.token import is_valid_token
from disco.util.logging import setup_logging

if os.path.exists(args.config):
Expand All @@ -60,10 +59,6 @@ def disco_main(run=False):
if hasattr(config, k) and v is not None:
setattr(config, k, v)

if not is_valid_token(config.token):
print('Invalid token passed')
return

if args.shard_auto:
from disco.gateway.sharder import AutoSharder
AutoSharder(config).run()
Expand Down
10 changes: 0 additions & 10 deletions disco/util/token.py

This file was deleted.

0 comments on commit 76b34a0

Please sign in to comment.