Skip to content

Commit

Permalink
Omdøber 'christmas' til 'isChristmas' mhp. EggsML::EggsPI-konsistens. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
sshine committed Oct 25, 2016
1 parent 15dbf09 commit 3d0d68a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions concieggs/eggspi/laughter
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env tclsh

catch {exec christmas} {} options
set outside_christmas [dict get $options -code]
set ha [expr {$outside_christmas ? "HA" : "Ho"}]
catch {exec isChristmas} {} options
set isntChristmas [dict get $options -code]
set ha [expr {$isntChristmas ? "HA" : "Ho"}]
puts [string repeat $ha [expr {2 + int(rand() * 10)}]]
2 changes: 1 addition & 1 deletion concieggs/eggspi/putInBadStanding
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

who=$1

if christmas; then
if isChristmas; then
(echo "Egentlig irriterer $who mig en del, men pyt - det er jo jul!"
echo "$who: Du er da godt nok en... nej, hvad er det jeg siger. Det er jul!"
echo "Det er jul, så jeg vælger at se bort fra $who's adfærd."
Expand Down
2 changes: 1 addition & 1 deletion concieggs/eggspi/titleEggs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hour="$(dateSecs $1 +%H)"
minute="$(dateSecs $1 +%M)"

if [ $hour -eq 13 -a $minute -eq 0 ]; then
if christmas; then
if isChristmas; then
echo "juleman Eggs $(timeToRelDay $1)"
else
echo "gentleman Eggs $(timeToRelDay $1)"
Expand Down
2 changes: 1 addition & 1 deletion concieggs/hooks/channel_join/40christmas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

shuttingUp && exit

if christmas && maybeGood .7; then
if isChristmas && maybeGood .7; then
if isKing "$EGGS_USER"; then
randomLine <<EOF
Deres Majestæt! Det er jul!
Expand Down
2 changes: 1 addition & 1 deletion concieggs/hooks/channel_message/70jule
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Concieggs er i sådan et dejligt julehumør!

(shuttingUp || ! christmas) && exit
(shuttingUp || ! isChristmas) && exit

if [ "$(random 0 30)" = 0 ]; then
runcmd jul
Expand Down

0 comments on commit 3d0d68a

Please sign in to comment.