Bibliobot: Difference between revisions

From WikiDotMako
(Created page with "a small IRC automation robot. The bibliobot code is at https://nusni.com/willscott/bibliobot - this will not be accessible unless you have a user account. you will need to as...")
 
 
Line 15: Line 15:
*** <code>!schedule add [task] [duration] [args...]</code>
*** <code>!schedule add [task] [duration] [args...]</code>
*** <code>!schedule add msg 5m hello world</code> - messages the channel
*** <code>!schedule add msg 5m hello world</code> - messages the channel
*** <code>!schedule add write 5m remember recycling</code> - sets the living room board
*** <code>!schedule add sparkle 5m happy birthday</code> - sets the living room board with colors
*** <code>!schedule add sparkle 5m happy birthday</code> - sets the living room board with colors
*** <code>!schedule add weather 5m sea</code> - sets the living room board to weather in city
*** <code>!schedule add weather 5m sea</code> - sets the living room board to weather in city

Latest revision as of 01:17, 29 September 2021

a small IRC automation robot.

The bibliobot code is at https://nusni.com/willscott/bibliobot - this will not be accessible unless you have a user account. you will need to ask will for one.

Actions[edit]

changing the channel topic will update the living room board. The character set available is ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$()-+&=;:'\"%,./?°

  • !light - turn the backyard lights on and off
  • !weather [city] - the living room board will show weather for [city]
  • !schedule
    • add - add a task
      • !schedule add [task] [duration] [args...]
      • !schedule add msg 5m hello world - messages the channel
      • !schedule add sparkle 5m happy birthday - sets the living room board with colors
      • !schedule add weather 5m sea - sets the living room board to weather in city
    • list - list scheduled tasks
      • !schedule list
    • rm - remove a task, by id (id found via list)
      • !schedule rm [id]
    • repeat - repeat a scheduled task at an interval
      • !schedule repeat [id] [duration]

Duration are specified as described at https://pkg.go.dev/time#ParseDuration