-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# CloudBot Docs | ||
|
||
Stuff will eventually go here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# User Docs for CloudBot | ||
|
||
## Introduction | ||
|
||
Welcome to CloudBot, in this guide, we will cover the setup and configuration procedures in the following files: | ||
|
||
- main_user.md (This File) contains the introductory material for setting up CloudBot. | ||
- configuration.md contains more information on creating a JSON configuration file for CloudBot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import random | ||
|
||
from cloudbot import hook | ||
from cloudbot.util import formatting | ||
|
||
USE_FLIPPERS = False | ||
|
||
replacements = { | ||
'a': 'ɐ', | ||
'b': 'q', | ||
'c': 'ɔ', | ||
'd': 'p', | ||
'e': 'ǝ', | ||
'f': 'ɟ', | ||
'g': 'b', | ||
'h': 'ɥ', | ||
'i': 'ı', | ||
'j': 'ظ', | ||
'k': 'ʞ', | ||
'l': 'ן', | ||
'm': 'ɯ', | ||
'n': 'u', | ||
'o': 'o', | ||
'p': 'd', | ||
'q': 'b', | ||
'r': 'ɹ', | ||
's': 's', | ||
't': 'ʇ', | ||
'u': 'n', | ||
'v': 'ʌ', | ||
'w': 'ʍ', | ||
'x': 'x', | ||
'y': 'ʎ', | ||
'z': 'z', | ||
'?': '¿', | ||
'.': '˙', | ||
'/': '\\', | ||
'\\': '/', | ||
'(': ')', | ||
')': '(', | ||
'<': '>', | ||
'>': '<', | ||
'[': ']', | ||
']': '[', | ||
'{': '}', | ||
'}': '{', | ||
'\'': ',', | ||
'_': '‾'} | ||
|
||
flippers = ["( ノ⊙︵⊙)ノ", "(╯°□°)╯", "( ノ♉︵♉ )ノ"] | ||
|
||
@hook.command | ||
def flip(text, message, reply): | ||
"""<text> -- Flips <text> over.""" | ||
if USE_FLIPPERS: | ||
message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1], replacements)) | ||
else: | ||
reply(formatting.multi_replace(text[::-1], replacements)) | ||
|
||
|
||
@hook.command | ||
def table(text, message): | ||
"""<text> -- (╯°□°)╯︵ <ʇxǝʇ>""" | ||
message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1], replacements)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters