diff --git a/disco/bot/plugin.py b/disco/bot/plugin.py index 97174e2..9fb248c 100644 --- a/disco/bot/plugin.py +++ b/disco/bot/plugin.py @@ -445,7 +445,7 @@ class Plugin(LoggingClass, PluginDeco): repeat : bool Whether this schedule is repeating (or one time). init : bool - Whether to run this schedule once immediatly, or wait for the first + Whether to run this schedule once immediately, or wait for the first scheduled iteration. kwargs: dict kwargs which will be passed to executed `func` diff --git a/disco/voice/udp.py b/disco/voice/udp.py index 918e0e6..fd27f1d 100644 --- a/disco/voice/udp.py +++ b/disco/voice/udp.py @@ -268,11 +268,11 @@ class UDPVoiceClient(LoggingClass): first_byte, = struct.unpack_from('>B', data[:offset]) offset += 1 - rtp_extension_identifer = first_byte & 0xF + rtp_extension_identifier = first_byte & 0xF rtp_extension_len = ((first_byte >> 4) & 0xF) + 1 - # Ignore data if identifer == 15, so skip if this is set as 0 - if rtp_extension_identifer: + # Ignore data if identifier == 15, so skip if this is set as 0 + if rtp_extension_identifier: fields.append(data[offset:offset + rtp_extension_len]) offset += rtp_extension_len