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.