mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 16:55:40 +00:00
d9776ecba9
- Added: .timemute - Added: .timeban - Added: .listjobs - Added: .deletejob - Many bugfixes are also included~ You'll need to restart your copy of robocop-ng after pulling this.
32 lines
965 B
Python
32 lines
965 B
Python
import discord
|
|
from discord.ext import commands
|
|
from helpers.checks import check_if_staff
|
|
from helpers.userlogs import userlog
|
|
|
|
|
|
class ModNote:
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@commands.guild_only()
|
|
@commands.check(check_if_staff)
|
|
@commands.command(aliases=["addnote"])
|
|
async def note(self, ctx, target: discord.Member, *, note: str = ""):
|
|
"""Adds a note to a user, staff only."""
|
|
userlog(target.id, ctx.author, note,
|
|
"notes", target.name)
|
|
await ctx.send(f"{ctx.author.mention}: noted!")
|
|
|
|
@commands.guild_only()
|
|
@commands.check(check_if_staff)
|
|
@commands.command(aliases=["addnoteid"])
|
|
async def noteid(self, ctx, target: int, *, note: str = ""):
|
|
"""Adds a note to a user by userid, staff only."""
|
|
userlog(target, ctx.author, note,
|
|
"notes")
|
|
await ctx.send(f"{target.mention}: noted!")
|
|
|
|
|
|
def setup(bot):
|
|
bot.add_cog(ModNote(bot))
|