DevAX1T
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    mayLOG was created by DevAX1T after depFLOW was confirmed to be taken offline. Below you'll find detailed information on stuff. All content is subject to change. ***ROVER MUST BE IN YOUR SERVER FOR THE BOT TO WORK*** :::info The documentation doesn't cover all parts **but is still useful** - you can get a hang of using mayLOG easily with the refined error messages. The documentation is designed to work hand-in-hand with the bot. ::: ## Why use mayLOG? mayLOG has a variety of features, with the most notable of such being action logs. mayLOG supports using a `Roblox username`, `#userId`, or `@Mention` when a username/subject is requested. :::info This bot is avaiable for use in all communities. An API will come out later that will support in-game activity logs. ::: ## How do I get access? mayLOG is available for public use mayLOG may leave a server if any of the following conditions are met: - A developer believes your server is a "test" server; - The bot is no longer being used/your server is dead; - A command has not been run recently; - A command has never been ran in the server. - Any other reason a developer deems suitable; ## Usage Guidelines - All guilds that use mayLOG must have RoVer present in the server. No other forms of Roblox verification bots are allowed. - Attempting to bypass this rule will result in a permanent server blacklist. - mayLOG must be actively used to avoid servers that attempt to "save" the bot for later use. - Refer to "How do I get access?" - Reasonable measures must be taken to prevent the bot from being abused. - If an individual purposely utilizes the bot to cause errors, crash it, etc., the server must take action against the user or face a potential blacklist. - mayLOG can be removed at the discretion of a developer. --- ## Configuration Configuration is required to use mayLOG. Below you will find all configurable options with an explanation of their mechanics and such. The commands below (officially referred to as "subcommands") utilize the primary `/config` command unless otherwise noted. The `/config` command requires the **Manage Server** permission to work. ### General Mechanics This is a section dedicated to general mechanics of mayLOG. #### Timestamps Dates use ISO 8601 format, e.g. `2023-06-20T23:08:20.000Z` or `2023-06-20` and are converted to UTC time before being displayed. For `YYYY-MM-DD`, this typically sets the hour used. If you would like to be specific, you can use a website such as [timestamp-converter.com](https://www.timestamp-converter.com/) for dates. We also support MM/DD/YYYY, YYYY-MM-DD, DD.MM.YYYY, and "durations" (e.g. `'1d', '30m', '5m30s', '24h30m10s', '1mo'`). Furthermore, a lot of commands support using "inf" or "indefinite" as an argument to represent **indefinitely.** All variations are currently: `'indef', 'indefinite', 'indefinitely', 'infinite', 'infinity', 'forever', 'inf', 'perm', 'permanent', 'permanently', 'unknown', 'never'` ### Department Role Servers are requested to use the `/config set_role` command; This ensures that only department members can access the command. Select the role that youre department uses (e.g. `National Guard` for MNG, `State Police` for PPD, etc.) ### Command roles :::warning Previously, "department command" referred to high command members of a department. This has been changed and the term now represents all command members. ::: There are two types of command roles: - Command/department command - This is for all command members - High command - High command members are trusted over other command members; they may configure activity quotas, exempt users/divisions from activity quotas, skip them for the entirety of the department, etc. If we used the Mayflower State Police as an example, it would be recommended to register the ranks from Sergeant - Colonel as "command" roles and the ranks from Lieutenant - Colonel as "high command" roles. This will allow for bureau/division command to modify the quota for their division/bureau. ### Discharges Discharges have two configuration options: - Discharge - Termination For an agency like the National Guard, it makes sense to refer to terminations as "discharges" (e.g. general discharge, preliminary discharge, dishonorable discharge, etc.), but for some law enforcement agencies and private businesses, it makes more sense to refer to terminations as "terminations." For this reason, there is a way to configure what the log message will look like when using the `/deptaction discharge` command. The command found below can configure which type the bot will use: ![](https://hackmd.io/_uploads/rk7psjwD2.png) **With `discharge-display` being set to "discharge," the following log messages will be shown:** ![](https://hackmd.io/_uploads/Byym0sPv2.png) ![](https://hackmd.io/_uploads/rkffAjvwn.png) ![](https://hackmd.io/_uploads/Hy7l0oDvh.png) ![](https://hackmd.io/_uploads/BJsp6svDh.png) **With `discharge-display` being set to "terminate," the following messages will be shown:** ![](https://hackmd.io/_uploads/S1zURjwvh.png) ![](https://hackmd.io/_uploads/rkvPAiwDh.png) All other discharge types are unsupported and you'll receive an error if you try to use them. --- ![](https://hackmd.io/_uploads/ByHitovv2.png) ![](https://hackmd.io/_uploads/SJ-0YjDD3.png) ![](https://hackmd.io/_uploads/BkUqcovP2.png) ![](https://hackmd.io/_uploads/Byy05svw3.png) --- ### Administrative Leave :::danger mayLOG used to DM users when they were placed on administrative leave. The bot no longer does this. Ensure your Internal Affairs units satisfy legal requirements by informing users when they're placed on administrative leave. ::: Different departments utilize mayLOG, and as such, each department has different needs. ![](https://hackmd.io/_uploads/HkNEl2wvn.png) Contact text for administrative leave messages can be changed to one of the four options: - Contact IA Command and High Command if seen on-team. - Contact Department Command if seen on-team. - Contact Human Resources and Department Command if seen on-team. - Contact MP and MIS if seen on-team. This can be done with `/config suspension_contact_message`. - This message also shows up for suspensions. In an upcoming update (likely v2.5), command may configure DM messages. To satisfy legal requirements of informing a subject after they're placed on Administrative Leave (because you can't send a message without a ping in a channel and expect them to see it), mayLOG automatically sends a direct message to anyone placed on Administrative Leave. As all departments are different, this message can be fully customized. Using `{an unreleased command}`` command, departments can configure: - What message is sent to the user; - If the individual who placed the subject on Administrative Leave shows up in the administrative leave direct message embed. ![](https://hackmd.io/_uploads/ryyySn2Ph.png) This message is sent to everyone placed on administrative leave ![](https://hackmd.io/_uploads/ByG6Vn2D3.png) --- ### Channels Departments must configure their channels appropriately; whether this be the department logs channel, the LOA Request channel, or the activity logs submission channel. You can use the `/config set_channel` command and set the respective channel. --- :::spoiler Planned updates (expected release v2.3) ### Activity Quotas Departments may set quotas for specific units, divisions, bureaus, etc. The `/quota` command can be used to alter patrol quotas for all units. To exclude a user (or rank) from the activity quota, simply create a "Log Exemption" role and use the `/quota` command to exempt the role from the quota. mayLOG can determine who's in-game and who's on-team at the same time; this feature can be integrated with quotas to remove the need for manual activity log submission (although the option will still be available). As servers can crash and unexpected issues can arise, it's recommended to have both options enabled. The feature can be enabled using the `/config bot-verified-logs` command. There are prohibitions for usage: - The department must have an in-game team used to conduct operations (e.g. Mayflower National Guard, Transit Authority, Mayflower State Police, etc) - Departments with in-game teams with no in-game activity requirements such as "State Government", "Department of State", "Department of Justice", etc. are forbidden from enabling this feature. - All private businesses are not allowed to enable this feature. - In the future, private businesses may be allowed to utilize this command, although it will only check if someone is on the "Citizen" team and nothing else. This purely depends on demand. #### Configuring cycles Activity cycles are a period of time which mayLOG collects log for. An example is Sunday to Saturday. Configuring an activity cycle could be difficult if the user doesn't understand the setup command. The `/cycle` command requests a `start_date` and `end_date`. In these examples, the patrol cycle will be Sunday to Saturday. There are two ways to set a cycle, although the second option is recommended instead of the first. It may seem like you're only setting one cycle, but in reality, the bot measures the distance between both dates and goes on from that point. If you set the start_date to 2023-06-01 and the end_date to 2023-06-02, a new cycle would be started every day from that point on. `2023-06-11` - `2023-06-18` - The bot would register the activity cycle as already being started; this could potentially be unfair to current department members and is unrecommended. `2023-06-18` - `2023-06-25` - The bot would start the cycle on June 18, 2023 (Sunday) and it would would end on June 25, 2023 (Sunday). This cycle would continue until changed, meaning the next cycle would start on June 25, 2023 (Sunday) and end on June 2, 2023 (Sunday). Reference: ![](https://hackmd.io/_uploads/BkwOGXYP2.png) #### Setting a quota Department command may set a quota utilizing the `/quota` command. todo: go into detail about how u can give Log Exemption role an exemption, etc. ::: --- ### Embed Colors `/deptaction custom` allows you to use a preset color or a custom hex color. Here are a few (but not all) of the colors mayLOG uses: - mayLOG (theme color) - red - green - blue - orange - black ### Update History :::spoiler View update log #### Version 2.0.0 [2024-03-03] Released a completely new structure for the bot. Version one and two are now open source - you may view that by running the `/info` command. Many commands have been completely refactored. "Times" now support more usage. Activity features will come at a later date. #### Version 1.8.0 [2023-07-14] <!-- Leave of Absence: --> Commands: - Added activity logs (strictly for usage in Noah's Remade). This is an experimental feature and it may be unstable. At the moment, only select departments will get access to this feature. Please refer to the "Activity Quotas" section for more information. - Added action requests; command members can request that one of the following actions be taken against an employee - Recorded warning - Verbal warning - Discharge - Suspension <!-- - Added LOA Requests - Employees can use the `/reqloa` command to request a LOA. Command members can approve the LOA, and if auto role is enabled, the member will automatically be given the LOA role. - todo: Change LOA role to /loa @user to give them the role and have it auto-unrole when LOA is over --> <!-- - Added request action commands. Department command can now request an action be taken on a user. --> - Added "auto role" - You can automatically apply the respective roles (probation, suspend, administrative leave, loa) when a command is run. - Added support for using `#userId` for the `subject` field. - Added further validation to button/modal submissions. - Added a `/suggest` command. - Added the `/bug_report` command. - Added a notes field to `/deptaction admin_leave`. - Added more guild details to the embed sent by `/deptaction admin_leave`. - Changed the `info` command embed to display more information. - Changed the department action message ("Successfully logged department action") to include a link to the posted message. - Changed `/config` commands to display an embed upon success/error instead of text. - Changed department action embeds (footer) to display cached Roblox usernames instead of relying on Discord usernames. - Changed the `ping` command to display `ms` in its response. - Changed the `/ping` and `/info` command so they can no longer be run in DMs. - `/deptaction accept` has been added. - Changed the username display on department action embeds when using a mention. The bot now uses both Roblox and RoVer to cache Roblox usernames. Old Roblox usernames will no longer be displayed when using the @mention option. Accounts are cached for roughly six hours before being refreshed. - Changed dates to use UTC (e.g. if you use 2023-06-18, it may have a risk of showing up as 2023-06-19 depending on your timezone). - You can be very specific though; mayLOG uses ISO8601 so you can also use `2023-06-20T23:08:20.000Z` for time. See https://www.timestamp-converter.com/ - Changed the `/deptaction probation` command to use bold for "probation" instead of normal text. - Changed the `/deptaction demote` command to show a red embed instead of green. - Various other unlisted improvements & additions. #### Version 1.7.2 [2023-05-31] Commands: - Fixed internal issues (yeah.. not much detail) - URL Validation #### Version 1.7.1 [2023-05-30] Commands: - Fixed deptaction bold issue #### Version 1.7.0 [2023-05-30] Commands: - The backend for DeptAction has been greatly improved. There should be faster load response times for interactions. - Info command updated to reflect public usage being available. - Info command made ephemeral. - *Once again* updated developer commands #### Version 1.6.6 [2023-05-23] Commands: - Updated developer commands Main bot: - The bot now leaves a server it's added to if RoVer is not in the server. #### Version 1.6.5 [2023-05-23] Main bot: - Updated internal logging #### Version 1.6.4 [2023-05-23] Commands: - Bug fixes (descriptive, I know) #### Version 1.6.3 [2023-05-21] Commands: - Updated internal developer commands (and more internal stuff) - mayLOG now tells you if it might need the `Send Messages` permission - mayLOG now displays an error message when the `YYYY-MM-DD` format isn't used for dates. - Code improvements #### Version 1.6.2 [2023-05-11] Commands: - Updated internal developer commands - Updated nearly all /deptaction command colors #### Version 1.6.1 [2023-05-09] Commands: - Fixed non-ephemeral messages in `/deptaction` commands. #### Version 1.6.0 [2023-05-09] Commands: - Added the ability to use a pre-set color list (or hex color) with the `/deptaction custom` command. - Updated internal developer commands #### Version 1.5.1 [2023-05-09] Commands: - Fixed the issue where the `/deptaction admin_leave` command would sometimes give a "This interaction failed" response - Fixed the `/deptaction custom` command. #### Version 1.5.0 [2023-05-08] Commands: - Added a `preliminary` option to discharges. - Discharge display must be set to `discharge`. - Fixed an issue where /deptaction admin_leave would error #### Version 1.4.0 [2023-05-08] Commands: - Modified the `/deptaction` command to support both mentions and raw usernames. - You no longer need to mention a user to create an action log. It is recommended though. #### Version 1.3.0 [2023-05-08] Commands: - Added `/configure department-icon` - Departments can set the icon (URL) to be displayed in the embed message - Added proper custom department action colors - Using `/deptaction custom`, you can select from a list of preset embed colors or use hex colors. - Added notes to the `/deptaction custom` command. #### Version 1.2.1 [2023-05-08] Commands: - Updated the thumbnail size for department logs - Updated the `/deptaction transfer` command action color #### Version 1.2.0 [2023-05-07] Commands: - Added a ping command - Added an info command that displays bot information - System uptime - Bot developer - Bot version - Usage information (who qualifies) - Documentation - Modified the `/deptaction admin_leave` command to allow command to place users on Administrative Leave without DMing them. #### Version 1.1.0 [2023-05-07] Commands: - Added the ability to configure if avatars should show in department action messages :::

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully