fhdhgds
parent
47f5e1d1b4
commit
41a779f58b
|
@ -66,13 +66,14 @@ class Mod_DTL < Vrobot4::Module::Module
|
|||
argv = argv.split ?,, 2
|
||||
ids = get_notification_roles m, argv[0]
|
||||
if m.user.real.role? ids[:dev]
|
||||
ids[:not].mentionable = true
|
||||
notif = m.chan.real.server.role ids[:not]
|
||||
notif.mentionable = true
|
||||
if argv[1]
|
||||
m.reply "#{ids[:not].mention} - #{argv[1].strip}"
|
||||
m.reply "#{notif.mention} - #{argv[1].strip}"
|
||||
else
|
||||
m.reply ids[:not].mention
|
||||
m.reply notif.mention
|
||||
end
|
||||
ids[:not].mentionable = false
|
||||
notif.mentionable = false
|
||||
else
|
||||
m.reply "You don't have permission for that."
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue