|
@@ -61,11 +61,11 @@ class MuriPlugin(Plugin):
|
|
return True
|
|
return True
|
|
gn = args[3]
|
|
gn = args[3]
|
|
if args[2] == 'add':
|
|
if args[2] == 'add':
|
|
- self.groups.append(gn)
|
|
|
|
|
|
+ self.groups.append(int(gn))
|
|
await event.reply(f'Group {gn} added.')
|
|
await event.reply(f'Group {gn} added.')
|
|
elif args[3] == 'del':
|
|
elif args[3] == 'del':
|
|
try:
|
|
try:
|
|
- self.groups.remove(args[3])
|
|
|
|
|
|
+ self.groups.remove(int(gn))
|
|
await event.reply(f'Group {gn} deleted.')
|
|
await event.reply(f'Group {gn} deleted.')
|
|
except Exception as e:
|
|
except Exception as e:
|
|
await event.reply(f'Err: {e}')
|
|
await event.reply(f'Err: {e}')
|