-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from LanceMaverick/new-folder-structure
New folder structure
- Loading branch information
Showing
17 changed files
with
215 additions
and
52 deletions.
There are no files selected for viewing
File renamed without changes.
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 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard("callback") |
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 @@ | ||
hello_world: Hello world! Your config has been copied! |
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,22 @@ | ||
from skybeard.beards import BeardChatHandler | ||
from skybeard.predicates import Filters | ||
from skybeard.utils import get_beard_config | ||
|
||
|
||
config = get_beard_config() | ||
|
||
|
||
class Echo(BeardChatHandler): | ||
|
||
__userhelp__ = """A simple echo beard. Echos whatever it is sent.""" | ||
|
||
__commands__ = [ | ||
(Filters.text, 'msg_config', | ||
'Messages the hello_world variable from config.') | ||
] | ||
|
||
# __init__ is implicit | ||
|
||
async def msg_config(self, msg): | ||
# await self.sender.sendMessage(msg['text']) | ||
await self.sender.sendMessage(config['hello_world']) |
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,6 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard( | ||
"configexample", | ||
copy_config=True | ||
) |
File renamed without changes.
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 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard("database") |
File renamed without changes.
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 @@ | ||
dice<=1.1.0 |
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 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard("dicebeard") |
4 changes: 2 additions & 2 deletions
4
examples/echo/__init__.py → examples/echo/python/echo/__init__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard( | ||
"echo", | ||
) |
File renamed without changes.
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 @@ | ||
from skybeard.utils import setup_beard | ||
|
||
setup_beard("onerror") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
aiohttp==1.2.0 | ||
async-timeout==1.1.0 | ||
chardet==2.3.0 | ||
multidict==2.1.4 | ||
pkg-resources==0.0.0 | ||
telepot==10.4 | ||
urllib3==1.19.1 | ||
yarl==0.8.1 | ||
pyconfig==3.1.1 | ||
dataset==0.7.0 | ||
telepot<=10.4 | ||
pyconfig<=3.1.1 | ||
dataset<=0.7.0 |
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