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
15 changed files
with
454 additions
and
0 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 @@ | ||
source "http://rubygems.org" | ||
|
||
gem "showoff" |
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,31 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
blankslate (2.1.2.4) | ||
bluecloth (2.2.0) | ||
gli (1.4.0) | ||
json (1.6.3) | ||
nokogiri (1.5.0) | ||
parslet (1.2.3) | ||
blankslate (~> 2.0) | ||
rack (1.4.0) | ||
rack-protection (1.2.0) | ||
rack | ||
showoff (0.7.0) | ||
bluecloth | ||
gli (>= 1.3.2) | ||
json | ||
nokogiri | ||
parslet | ||
sinatra | ||
sinatra (1.3.2) | ||
rack (~> 1.3, >= 1.3.6) | ||
rack-protection (~> 1.2) | ||
tilt (~> 1.3, >= 1.3.3) | ||
tilt (1.3.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
showoff |
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,2 @@ | ||
require "showoff" | ||
run ShowOff.new |
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,26 @@ | ||
<!SLIDE center #api> | ||
|
||
# New API | ||
|
||
<!SLIDE #api> | ||
|
||
@@@ ruby | ||
Scamp.new do |bot| | ||
bot.match /^ping$/ do |room, msg| | ||
room.say "pong" | ||
end | ||
|
||
bot.connect! | ||
end | ||
|
||
<!SLIDE center #api> | ||
|
||
## No more instance eval hacks | ||
|
||
<!SLIDE center #api> | ||
|
||
## Less Pretty :( | ||
|
||
<!SLIDE center #api> | ||
|
||
## Way More Flexible! |
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,43 @@ | ||
<!SLIDE center #adapters> | ||
|
||
# Adapters | ||
|
||
<!SLIDE #adapters> | ||
|
||
@@@ ruby | ||
Scamp.new do |bot| | ||
bot.adapter :campfire, | ||
Scamp::Campfire::Adapter, | ||
subdomain: 'nwrug', | ||
api_key: 'as89...', | ||
rooms: [12345] | ||
|
||
bot.connect! | ||
end | ||
|
||
<!SLIDE center #adapters> | ||
|
||
# Run Multiple adapters | ||
## Even of the same type! | ||
|
||
<!SLIDE center #adapters> | ||
|
||
# Super Simple API | ||
|
||
<!SLIDE #adapters> | ||
|
||
@@@ ruby | ||
class TestAdapter < Scamp::Adapter | ||
def connect! | ||
push [nil, | ||
Scamp::Message.new(body: "Hello")] | ||
end | ||
end | ||
|
||
<!SLIDE center #adapters> | ||
|
||
## Currently have adapters for IRC & Campfire | ||
|
||
<!SLIDE center #adapters> | ||
|
||
## Speak to me after if you want to write another! |
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,31 @@ | ||
<!SLIDE center #plugins> | ||
|
||
# Plugins | ||
|
||
<!SLIDE #plugins> | ||
|
||
@@@ ruby | ||
Scamp.new do |bot| | ||
bot.plugin MyPlugin | ||
|
||
bot.connect! | ||
end | ||
|
||
<!SLIDE center #plugins> | ||
|
||
# Super Simple API | ||
|
||
<!SLIDE #plugins> | ||
|
||
@@@ ruby | ||
class MyPlugin < Scamp::Plugin | ||
match /^ping$/, :say_pong | ||
|
||
def say_pong room, msg | ||
room.say "pong" | ||
end | ||
end | ||
|
||
<!SLIDE center #plugins> | ||
|
||
## Speak to me after if you want to write a plugin! |
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,25 @@ | ||
<!SLIDE center #resources> | ||
|
||
# Github Repo | ||
### https://github.com/wjessop/scamp/tree/2.0 | ||
|
||
<!SLIDE center #resources> | ||
|
||
# Example bot | ||
### https://github.com/omgitsads/Rugbot/tree/scamp | ||
### Runs Rugbot in #nwrug (or will do) | ||
|
||
<!SLIDE center #resources> | ||
|
||
# When will it release? | ||
### A week or two. | ||
|
||
<!SLIDE center #resources> | ||
|
||
# What adapters will it have? | ||
### Campfire and IRC at a minimum. | ||
|
||
<!SLIDE center #resources> | ||
|
||
# Want to contribute? | ||
### Speak to Me and Will after. |
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,9 @@ | ||
{ | ||
"name": "Scamp 2.0", | ||
"description": "An introduction to Scamp 2.0", | ||
"sections": [ | ||
{"section": "title"}, | ||
{"section": "features"}, | ||
{"section": "resources"} | ||
] | ||
} |
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,42 @@ | ||
@font-face { | ||
font-family: 'MuseoSlab500'; | ||
src: url('/file/font/Museo_Slab_500-webfont.eot'); | ||
src: url('/file/font/Museo_Slab_500-webfont.eot?#iefix') format('embedded-opentype'), | ||
url('/file/font/Museo_Slab_500-webfont.woff') format('woff'), | ||
url('/file/font/Museo_Slab_500-webfont.ttf') format('truetype'), | ||
url('/file/font/Museo_Slab_500-webfont.svg#MuseoSlab500') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
body { | ||
font-family: 'MuseoSlab500'; | ||
} | ||
|
||
#title { | ||
background-color: #E9EFEF; | ||
} | ||
|
||
#api { | ||
background-color: #EDEFC3; | ||
} | ||
|
||
.sh_sourceCode { | ||
background-color: #F0F0F0; | ||
-webkit-border-radius: 10px; | ||
-moz-border-radius: 10px; | ||
border-radius: 10px; | ||
border: 7px solid #949494; | ||
} | ||
|
||
#adapters { | ||
background-color: #BFDADA; | ||
} | ||
|
||
#plugins { | ||
background-color: #F4DFCA; | ||
} | ||
|
||
#resources { | ||
background-color: #DEF4CF; | ||
} |
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,15 @@ | ||
<!SLIDE title #title> | ||
|
||
# Scamp | ||
|
||
<!SLIDE center #title> | ||
|
||
## SRLY? | ||
|
||
<!SLIDE center #title> | ||
|
||
# 2.0 | ||
|
||
<!SLIDE center #title> | ||
|
||
# New Features |