NapGod.js Discord bot: Difference between revisions

From Polyphasic Sleep Wiki
>Ninichat
NapGod bot exposes various commands to interact with the polyphasic sleeping discord
 
>Ninichat
mNo edit summary
Line 1: Line 1:
=== Description ===
The bot allows you to interact with the discord server in multiple ways.
=== Source ===
Github link: https://github.com/PolyphasicDevTeam/NapGod.js
Github link: https://github.com/PolyphasicDevTeam/NapGod.js


The bot allows you to interact with the discord server in multiple ways.
== Commands ==
There are multiple commands:


''For every command, if [user] is omitted, target defaults to you.''
''For every command, if [user] is omitted, target defaults to you.''
Line 8: Line 13:
For various tips and tricks about polyphasic sleeping, use '''!help'''
For various tips and tricks about polyphasic sleeping, use '''!help'''


Schedules
=== Schedules ===
=========


To view information about a sleep schedule, use '''+[schedule-name]''', e.g. '''+DC1'''
To view information about a sleep schedule, use '''+[schedule-name]''', e.g. '''+DC1'''
Line 29: Line 33:
To set both your napchart and your schedule, use '''+set [schedule] [napchart-link]'''.
To set both your napchart and your schedule, use '''+set [schedule] [napchart-link]'''.


History
=== History ===
=======


Look up someone's schedule history: '''+hist [user] [page]'''
Look up someone's schedule history: '''+hist [user] [page]'''
Line 41: Line 44:
Remove a schedule in the past '''+histdel [index]'''
Remove a schedule in the past '''+histdel [index]'''


Timezones
=== Timezones ===
=========


Set your timezone '''+settz [timezone]'''
Set your timezone '''+settz [timezone]'''
Line 51: Line 53:




Napchart
=== Napchart ===
========


Create a new napchart '''+create [time-ranges]'''
Create a new napchart '''+create [time-ranges]'''
Show a napchart '''+nc [napchart-link]'''
Show a napchart '''+nc [napchart-link]'''


Roles
=== Roles ===
=====


Focus is a mode that disables discord notifications for a time.
Focus is a mode that disables discord notifications for a time.
Line 70: Line 70:




Logging
=== Logging ===
=======


To log in a free format: use '''+freelog'''.
To log in a free format: use '''+freelog'''.
Line 81: Line 80:
You are welcome to send constructive feedback about the logging bot to Ninichat.
You are welcome to send constructive feedback about the logging bot to Ninichat.


Misc
=== Misc ===
====


Generate Nap God report: '''+report'''
Generate Nap God report: '''+report'''
The report is a json file which allows you to see user schedules.
The report is a json file which allows you to see user schedules.

Revision as of 11:00, 4 December 2020

Description

The bot allows you to interact with the discord server in multiple ways.

Source

Github link: https://github.com/PolyphasicDevTeam/NapGod.js

Commands

For every command, if [user] is omitted, target defaults to you.

For various tips and tricks about polyphasic sleeping, use !help

Schedules

To view information about a sleep schedule, use +[schedule-name], e.g. +DC1

Non-polyphasic schedules: Mono Random Biphasic schedules: E1 Segmented Siesta BiphasicX Everyman schedules: E2 E3 E4 E5 Trimaxion SEVAMAYL Dual core schedules: Bimaxion DC1 DC2 DC3 DC4 Tri core schedules: TC1 TC2 Triphasic Experimental/Unproven schedules: CAMAYL QC0 DUCAMAYL Nap only schedules: Dymaxion Naptation SPAMAYL Tesla Uberman

Supported schedule variants are shortened extended flipped modified and recovery

To set your schedule, use +set [schedule-name]. You may set a schedule variant after a dash, e.g. +set DC1-extended. For schedules not listed use +set Experimental. To set your napchart, use +set [napchart-link]. To set both your napchart and your schedule, use +set [schedule] [napchart-link].

History

Look up someone's schedule history: +hist [user] [page] Look up someone's full schedule history +histfull [user] [page] Full history does not merge any attempts and shows indices. You need these indices to edit past schedules.

All dates must be in yyyy-mm-dd format, such as 2020-04-07 Add a schedule in the past +histadd [schedule-name] [start-date] Remove a schedule in the past +histdel [index]

Timezones

Set your timezone +settz [timezone]

Look up a user's sleep status +status [user] Look up a user's timezone +gettz [user] Look up a user's napchart +get [user]


Napchart

Create a new napchart +create [time-ranges] Show a napchart +nc [napchart-link]

Roles

Focus is a mode that disables discord notifications for a time. Enter Forced Productivity +focus [duration] Leave Forced Productivity +unfocus

Get some information about a role: +roleinfo [role] Disable new youtube video notifications: +noYT Enable / disable marketplace role: +togglemarketplace Enable / disable NMO watch group: +togglewatchgroup (not many people are using NMO, a software which allows one another to watch themselves to avoid oversleeps)


Logging

To log in a free format: use +freelog. To log using the bot's private messages help: use +log. To customize logging: use +logoption to check what options are available to make logging faster or more personalized (could be very useful, do not hesitate to use it). To post an EEG log: use +logeeg and send the bot your eeg screenshot in a private message. Video on how to use the log bot: https://www.youtube.com/watch?v=Syq388GeoPY

You are welcome to send constructive feedback about the logging bot to Ninichat.

Misc

Generate Nap God report: +report The report is a json file which allows you to see user schedules.