-
Notifications
You must be signed in to change notification settings - Fork 0
/
Reset Messager
50 lines (43 loc) · 2.35 KB
/
Reset Messager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{ $rpChannels := ( dbGet 0 "channels" ).Value }}
{{ $message := cembed
"title" "**It is Reset Time!**"
"description" "it's time to wake up and face the night!"
"fields" (cslice
(sdict "name" "__**Rouse**__" "value" "Roll your Rouse checks `!v 1` in <##################>" "inline" false)
(sdict "name" "__**Blush**__" "value" "Roll your Blush checks `!v 1` in <##################>" "inline" false)
(sdict "name" "__**Failed either?**__" "value" "Your hunger goes up by 1" "inline" false)
(sdict "name" "__**Willpower**__" "value" "regain willpower equal to either Composure or Resolve, whichever is higher") )
"content" "Go and Wake Up!"
}}{{/* change ### into bot-roll channelID */}}
{{/* In the message, you can change the values for "name" and "value". DO NOT change name or value itself, but the content of the parts after, for they are keys not values. */}}
{{ range $key, $value := $rpChannels }}
{{ sendMessage $value $message }}
{{ end }}
{{ $damages := sdict ( dbGet 0 "damages" ).Value }}
{{ $masq := 0 }}
{{ $siAtt := 0 }}
{{- range $k,$v := $damages }}
{{- if ( eq $k "Masquerade Damage" ) }}
{{- $masq = $v }}
{{- else if ( eq $k "SI Attention" ) }}
{{- $siAtt = $v }}
{{- end -}}
{{- end }}
{{ execCC 75 nil 0 "autumn" }}
{{ $announce := print
"__**Server Reset Time**__\n"
"- You returned to your haven or you stayed at the friends haven. This is where you wake up in the first post of the new week.\n"
"- Make a Rouse Check, " "if it fails, your hunger goes up by 1\n"
"- You regain spent willpower equal to either Composure OR Resolve, whichever is highest.\n"
"- If you gained stains, roll for remorse. (pg. 239 Core Rulebook)\n"
"\n"
"**Masquerade damage:** " $masq "\n"
"**Second Inquisition attention:** " $siAtt "\n"
"\n"
"**Don't forget to add what you are rolling in:** " "<#" ################ ">\n"
"**Warning:** If you did a dumbdumb, and that got you killed, then I suggest thinking of your actions next time :stuck_out_tongue: dumb actions can and most likely will result in death.\n"
mentionEveryone
}}{{/* /* change ### into bot-roll channelID */}}
{{/* change whatever part of this message how you like. Masquerade Damage and SI Attention are variables derrived from the damage command */}}
{{ sendMessageNoEscape ############ $announce }}{{/* /* change ### into bot-roll channelID */}}
{{ deleteTrigger 1 }}