Revert "remove mentionable switch since discord can do that now"
This reverts commit 0f003e262d
.
master
parent
0f003e262d
commit
53fb4543f8
|
@ -67,11 +67,13 @@ class Mod_DTL < Vrobot4::Module::Module
|
||||||
ids = get_notification_roles m, argv[0]
|
ids = get_notification_roles m, argv[0]
|
||||||
if m.user.real.role? ids[:dev]
|
if m.user.real.role? ids[:dev]
|
||||||
notif = m.chan.real.server.role ids[:not]
|
notif = m.chan.real.server.role ids[:not]
|
||||||
|
notif.mentionable = true
|
||||||
if argv[1]
|
if argv[1]
|
||||||
m.reply "#{notif.mention} - #{argv[1].strip}"
|
m.reply "#{notif.mention} - #{argv[1].strip}"
|
||||||
else
|
else
|
||||||
m.reply notif.mention
|
m.reply notif.mention
|
||||||
end
|
end
|
||||||
|
notif.mentionable = false
|
||||||
else
|
else
|
||||||
m.reply "You don't have permission for that."
|
m.reply "You don't have permission for that."
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue