Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/mmattbtw/twitchtunes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattbtw committed Aug 4, 2021
2 parents 96a8d6b + 1edde4f commit fb4bc4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def event_ready(self):
print(
"Ignore the 'AttributeError: 'NoneType' object has no attribute '_ws'' error, this is an issue with the library."
)

def read_json(self, filename):
with open(f"{filename}.json", "r") as file:
data = json.load(file)
Expand All @@ -99,7 +99,7 @@ def read_json(self, filename):
def write_json(self, data, filename):
with open(f"{filename}.json", "w") as file:
json.dump(data, file, indent=4)

async def event_message(self, message):
await self.handle_commands(message)

Expand Down Expand Up @@ -299,6 +299,5 @@ async def song_request(self, ctx, song, song_uri, album: bool):
)



bot = Bot()
bot.run()

0 comments on commit fb4bc4f

Please sign in to comment.