Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
c5b6ca9e
Commit
c5b6ca9e
authored
Jun 07, 2019
by
Mindiell
Browse files
No more fun for wantzel
parent
3d167196
Changes
2
Hide whitespace changes
Inline
Side-by-side
fun.py
deleted
100644 → 0
View file @
3d167196
#encoding: utf-8
"""
Fun commands.
"""
from
random
import
choice
def
fun
(
user
,
channel
,
message
):
"""
This function is there to add some fun commands which could be not used easily.
"""
# Specific answer to Deltree, the animal's joke
if
user
.
lower
()
==
"deltree"
and
msg
==
"\_o< ~ Coin ~ >o_/"
:
animal
=
choice
([
{
"left"
:
"""><((('>"""
,
"right"
:
"""<')))><"""
,
"sound"
:
"blub"
,
},
{
"left"
:
"""=^..^="""
,
"right"
:
"""=^..^="""
,
"sound"
:
"meow"
,
},
{
"left"
:
"""ˁ˚ᴥ˚ˀ"""
,
"right"
:
"""ˁ˚ᴥ˚ˀ"""
,
"sound"
:
"wouf"
,
},
{
"left"
:
"""\_o<"""
,
"right"
:
""">o_/"""
,
"sound"
:
"coin"
,
},
{
"left"
:
"""^(*(oo)*)^"""
,
"right"
:
"""^(*(oo)*)^"""
,
"sound"
:
"grouïk"
,
},
{
"left"
:
"""~~(__^·>"""
,
"right"
:
"""<·^__)~~"""
,
"sound"
:
"yiik"
,
},
])
return
"%s ~ %s ~ Deltree ~ %s ~ %s"
%
(
animal
[
"left"
],
animal
[
"sound"
],
animal
[
"sound"
],
animal
[
"right"
],
)
return
""
wantzel.py
View file @
c5b6ca9e
...
...
@@ -17,7 +17,6 @@ from logs import Log
# bot modules
import
helpers
from
admin
import
Admin
from
fun
import
fun
from
monitor
import
Monitoring
from
rp
import
Rp
...
...
@@ -165,7 +164,6 @@ class Wantzel(object):
self
.
send_message
(
channel
,
"Test du timer en cours..."
)
else
:
self
.
send_message
(
channel
,
result
)
self
.
send_message
(
channel
,
fun
(
user
,
channel
,
msg
))
def
help
(
self
,
user
,
channel
,
msg
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment