From ef2acea5b032dabb838404263acca6cd4819bc9c Mon Sep 17 00:00:00 2001 From: luni3359 Date: Wed, 21 Oct 2020 07:33:03 -0500 Subject: [PATCH] Fix typos again --- discover_overlay/discord_connector.py | 6 +++--- discover_overlay/text_settings.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/discover_overlay/discord_connector.py b/discover_overlay/discord_connector.py index ff48987..4c86966 100644 --- a/discover_overlay/discord_connector.py +++ b/discover_overlay/discord_connector.py @@ -351,7 +351,7 @@ class DiscordConnector: logging.info( "Could not get room") return - if j["data"]["type"] == 2: + if j["data"]["type"] == 2: # Voice channel for voice in j["data"]["voice_states"]: if voice["user"]["id"] == self.user["id"]: self.set_channel(j["data"]["id"], False) @@ -364,7 +364,7 @@ class DiscordConnector: thisuser["nick"] = j["data"]["nick"] self.update_user(thisuser) self.set_in_room(thisuser["id"], True) - elif j["data"]["type"] == 0: + elif j["data"]["type"] == 0: # Text channel if self.request_text_rooms_response is not None: self.request_text_rooms_response[j['data'] ['position']] = j['data'] @@ -585,7 +585,7 @@ class DiscordConnector: recv, _w, _e = select.select((self.websocket.sock,), (), (), 0) while recv: try: - # Recieve & send to on_message + # Receive & send to on_message msg = self.websocket.recv() self.on_message(msg) recv, _w, _e = select.select((self.websocket.sock,), (), (), 0) diff --git a/discover_overlay/text_settings.py b/discover_overlay/text_settings.py index 3495897..aa32df8 100644 --- a/discover_overlay/text_settings.py +++ b/discover_overlay/text_settings.py @@ -79,7 +79,7 @@ class TextSettingsWindow(SettingsWindow): c_model = Gtk.ListStore(str, bool) self.channel_lookup = [] - # if a guild is specified, poulate channel list with every channel from *just that guild* + # If a guild is specified, populate channel list with every channel from *just that guild* if self.guild != GUILD_DEFAULT_VALUE: for position in self.list_channels_keys: chan = self.list_channels[position] @@ -180,7 +180,7 @@ class TextSettingsWindow(SettingsWindow): self.list_channels = in_list self.list_channels_keys = [] for (key, _value) in enumerate(in_list): - # filter for only text channels + # Filter for only text channels # https://discord.com/developers/docs/resources/channel#channel-object-channel-types if in_list[key] is not None and in_list[key]["type"] == 0: self.list_channels_keys.append(key)