models 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. -- This file is part of funbot.
  2. --
  3. -- Written in 2017 by fr33domlover <fr33domlover@riseup.net>.
  4. --
  5. -- ♡ Copying is an act of love. Please copy, reuse and share.
  6. --
  7. -- The author(s) have dedicated all copyright and related and neighboring
  8. -- rights to this software to the public domain worldwide. This software is
  9. -- distributed without any warranty.
  10. --
  11. -- You should have received a copy of the CC0 Public Domain Dedication along
  12. -- with this software. If not, see
  13. -- <http://creativecommons.org/publicdomain/zero/1.0/>.
  14. -------------------------------------------------------------------------------
  15. -- Meta
  16. -------------------------------------------------------------------------------
  17. SchemaVersion
  18. number Int
  19. -------------------------------------------------------------------------------
  20. -- The rest
  21. -------------------------------------------------------------------------------
  22. -- | A message left to an offline user, for them to read later.
  23. Memo
  24. time UTCTime
  25. sender Nickname
  26. recip Nickname
  27. recvIn Channel Maybe
  28. sendIn Channel Maybe
  29. content MsgContent
  30. ask Bool
  31. -- | A nickname the bot has seen in a channel.
  32. Kith
  33. channel Channel
  34. nickname Nickname
  35. spoke Bool
  36. UniqueKith channel nickname
  37. -- | A mapping between a label and a location, usually a URL.
  38. GlobalLocation
  39. label LocationLabel
  40. content LocationText
  41. UniqueGlobalLocation label
  42. -- | A mapping between a label and a location in a specific channel.
  43. LocalLocation
  44. channel Channel
  45. label LocationLabel
  46. content LocationText
  47. UniqueLocalLocation channel label
  48. -- | A person in a channel who can welcome and help new people.
  49. Folk
  50. channel Channel
  51. nickname Nickname
  52. UniqueFolk channel nickname
  53. -- | A special string which the bot can detect and translate into a longer
  54. -- form, e.g. a full URL.
  55. Shortcut
  56. label ShortcutLabel
  57. prefix Text
  58. before Text
  59. after Text
  60. UniqueShortcut label
  61. ShortcutChannel
  62. shortcut ShortcutId
  63. channel Channel
  64. UniqueShortcutChannel shortcut channel