updated makefile

renamed "motd-poster" to "announcer"
This commit is contained in:
a. fox 2023-03-24 23:49:12 -04:00
parent 3604297f74
commit 312a02219b
3 changed files with 9 additions and 5 deletions

View File

@ -26,6 +26,7 @@ clean:
rm -rf bin/
extensions:
cp -r commands bin/
cp -r services bin/
cp -r handlers bin/
mkdir -p bin/extensions
cp commands/* bin/extensions/
cp services/* bin/extensions/
cp handlers/* bin/extensions/

View File

@ -4,6 +4,9 @@ stream-url = https://my.stream.live
# see commands/motd.lisp to see this in use!
motd = Thanks for joining the stream, hope you're having a good time! I try to stream every wednesday, so if youre interested feel free to join!
# see services/announcer.lisp to see this in use!
announcement = Blah Blah! Check out my new blog https://example.blog
# a comma separated list of words you would like to be automatically moderated if they are
# said in your chat
automod-banned-words = poopy, stinky, doodoohead

View File

@ -3,6 +3,6 @@
;; Defines a new service that posts the message of the day every 45 minutes
;; since :start-with-stream is non-nil, this service is started on demand
;; when the stream starts and will end when the stream stops
(define-service ("MOTD Poster" :start-with-stream t)
(define-service ("announcement-poster" :start-with-stream t)
(after-every (45 :minutes :run-immediately t)
(send-chat (env :motd))))
(send-chat (env :announcement))))