Bugfix: Working on SDR RX
This commit is contained in:
7
bot.py
7
bot.py
@@ -7,7 +7,7 @@ import configparser
|
||||
from discord.ext import commands
|
||||
from subprocess import Popen, PIPE
|
||||
from gqrxHandler import GQRXHandler
|
||||
from BotResources import check_negative
|
||||
|
||||
|
||||
|
||||
# Init class for bot
|
||||
@@ -142,11 +142,6 @@ class Bot(commands.Bot):
|
||||
async def chsquelch(ctx, squelch: float, member: discord.Member = None):
|
||||
member = member or ctx.author.display_name
|
||||
|
||||
print(f"Squelch = {squelch}")
|
||||
if not check_negative(squelch):
|
||||
squelch = float(-abs(squelch))
|
||||
print(f"Squelch = {squelch}")
|
||||
|
||||
self.squelch = squelch
|
||||
await ctx.send(f"Ok {str(member).capitalize()}, I'm changing the squelch to {self.squelch}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user