Bot it Out! - WaffleJS

Yeli!
@YellzHeard
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
@YellzHeard
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
http://setosa.io/ev/markov-chains
I hope people like this talk I am giving. Otherwise it will be very
very awkward. Well at least there are waffles, sorry donuts.
"I ho" -> "hope" -> "ope " -> "pe p" -> "epeo" -> " peop" -> "eopl"
-> "ople" -> "ple " -> "le l" -> "e li" -> "like" -> "ike " -> "ke t" -> "e
th " -> "this" - > ...
I am not a number! I am a person! I am a person I tell you! I mean it, I am tired
actually. I am very tired.
Key Value Probability
I am a (⅖)
I am not (⅕)
I am tired (⅕)
I am very (⅕)
1. https://github.com/maximumdata/markov-
twitter-bot
2. https://github.com/jsvine/markovify
3. https://github.com/esdalmaijer/markovbot
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
https://www.patreon.com/tinysubversions
https://www.patreon.com/tinysubversions
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
1. Twit: https://github.com/ttezel/twit
1. Glitch: glitch.com
1. Tracery: http://tracery.io/
1. Corpora: https://github.com/dariusk/corpora
1.https://twitter.com/signup
1.apps.twitter.com
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
“Susie the _noun_ was
_adverb_ _verb_ the _noun_.”
“_number_ under _number_ working _adjective_
_preposition_ _noun_.”
“_number_ under _number_ working _adjective_
_preposition_ _noun_.”
= “40 under 60 working selfishly in
entertainment.”
http://www.brightspiral.com/tracery/
“working selfishly in finance.”
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
Bot it Out! - WaffleJS
https://cron-job.org
https://uptimerobot.com/
@Y_Under_YBot
https://cheapbotsdonequick.com/source/tinyspires
Bot it Out! - WaffleJS
https://cheapbotsdonequick.com/
https://www.patreon.com/v21
https://glitch.com/botwiki
Thank you!
@YellzHeard
1 of 41

Recommended

Strawberry Shortcake independent project storyboard by
Strawberry Shortcake independent project storyboardStrawberry Shortcake independent project storyboard
Strawberry Shortcake independent project storyboardKarleyElizabethAliez
566 views217 slides
Belajar HTML: Table Merging (18/33) by
Belajar HTML: Table Merging (18/33)Belajar HTML: Table Merging (18/33)
Belajar HTML: Table Merging (18/33)Sahabat Coding
92 views6 slides
Pronouns by
PronounsPronouns
PronounsAsh Stephen
237 views15 slides
Animals and their babies by
Animals and their babiesAnimals and their babies
Animals and their babieshemacolours
1.1K views45 slides
Aedes 2011 by
Aedes 2011Aedes 2011
Aedes 20111912alp
300 views11 slides
Wyatt Alyssa Libby Jayla Digital Story by
Wyatt Alyssa Libby Jayla Digital StoryWyatt Alyssa Libby Jayla Digital Story
Wyatt Alyssa Libby Jayla Digital StoryLori Larson
425 views17 slides

More Related Content

Recently uploaded

CryptoBotsAI by
CryptoBotsAICryptoBotsAI
CryptoBotsAIchandureddyvadala199
40 views5 slides
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...ShapeBlue
126 views10 slides
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...ShapeBlue
180 views18 slides
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...ShapeBlue
173 views15 slides
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TShapeBlue
152 views34 slides
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITShapeBlue
206 views8 slides

Recently uploaded(20)

Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue126 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue180 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue173 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue152 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue206 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker54 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson160 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue123 views
State of the Union - Rohit Yadav - Apache CloudStack by ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue297 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue186 views
The Role of Patterns in the Era of Large Language Models by Yunyao Li
The Role of Patterns in the Era of Large Language ModelsThe Role of Patterns in the Era of Large Language Models
The Role of Patterns in the Era of Large Language Models
Yunyao Li85 views
NTGapps NTG LowCode Platform by Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu423 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue106 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty64 views
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue203 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash158 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue159 views
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue252 views

Featured

ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
28K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.6K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
6.9K views99 slides
How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
5.6K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.6K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides

Featured(20)

ChatGPT and the Future of Work - Clark Boyd by Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd28K views
Getting into the tech field. what next by Tessa Mero
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero6.6K views
Google's Just Not That Into You: Understanding Core Updates & Search Intent by Lily Ray
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray6.9K views
Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky169.8K views
The six step guide to practical project management by MindGenius
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius36.7K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson3612.7K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.5K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views

Bot it Out! - WaffleJS

Editor's Notes

  1. Hi I’m Yeli!
  2. And I’m going to be talking to you about twitter bots! So what is a twitter bot? Well a bot is software designed to perform a certain task. For twitter bots, those tasks would the things you and I do on twitter. So, things like looking to see who is following us, tweeting, retweeting, liking, SUBTWEETING And a twitter bots would be able to do all or some of that but without a human involved in every stage of the process.
  3. There are different kinds of bots that you can find out in the wild on twitter, I’m going to go through some of them.
  4. There are bots that are just kind of random. This bot OminousZoom just tweets images and zooms in on them.
  5. There are Markov chain bots: You feed text through a Markov chain algorithm and then it mixes it up to produce something like this. The source text can be in a Google Sheet or collected from a twitter source, or any kind of data really. For this the input text was a database of Star Trek scripts.
  6. This markov chain bot was trained on the King James Bible & crypto whitepapers.
  7. And if you’re wondering what the hell a markov chains are, they are mathematical systems that hop from one state to another. For example, if you made a Markov chain model of a baby's behavior, you might include "playing," "eating", "sleeping," and "crying" as states and all those states would form a a state space which is a list of all the states. In addition to the state space, the markov chain tells you you the probability of going from one state to another. For example, the probability that a baby currently playing will fall asleep next.
  8. And how this works for text generation is every couple of letters would be a state and the Markov process transitions from state to state as the text is read. The text on the screen is using a Markov model of order 4, so each sequence of 4 letters is a state and you can see the transitions from one state to another. And then the second part is the probability of transitioning. So for example in english, the letter q is often followed by the letter u, so there would be a high probability that when the current state is q the next state would be u.
  9. Same goes when the markov chain is fed a lot of text. It’ll count the number of times a word follows a state. So if we are starting our text generation with the current state being “I am,” the next word will be chosen at random with probability based on what words historically have followed the current word. http://www.stat.purdue.edu/~mdw/CSOI/MarkovLab.html https://blog.codinghorror.com/markov-and-you/
  10. But you don’t actually need to know all of that, you can just use one of these libraries if you want to create a markov chain bot.
  11. Ok back to bots! There are bots that just pull from data sources. Sometimes they manipulate the data. censusAmericans tweets biographies of Americans based on data they provided to the U.S. Census Bureau. It gets numbers and info from the data and reconstructs that as a mini narrative.
  12. Deleted Wiki Titles just tweets article titles that have been removed from Wikipedia.
  13. There are bots that generate sentences that follow a certain structure. So for this, it’s the same sentence with a few changes each time. what’s being replaced in each permutation is the people performing the action and what is being replaced. This is corpus generated.
  14. Which means it gets data from a corpus which is a static collection of organized data.
  15. The creator of that bot we just saw, created a repo which contains a static collection of corpora. So for his project he uses the list of venues and new technologies
  16. And you can get stuff like a list of adverbs, adjectives also.
  17. This corpus generated bot is what we’re going to be making today!
  18. So a little background information on what we’re making: it’s a bot that generates awards to any and everyone because I’m not a big fan of the forbes 30 under 30.
  19. We’re going to be using: Twit: Twitter API Client for node (REST & Streaming API) Glitch: Friendly community for building apps, we’re going to host our code there Tracery: A tool for generating text Corpora: to get data
  20. So the first step to making a twitter bot is signing up for an account. You’ll need a phone number for that. Then you can create your application.
  21. That process looks like that. For website you can typically put in any URL but the URL we have there is where our bot is being hosted on glitch.
  22. And then you can also change your permissions depending on what you want you app to do.
  23. After you created your app, you should have access to your key and access tokens which will be in that tab.
  24. What we’ll need for our app and what twitter will give you after you create an application are the consumer key, consumer secret, access token and access token secret. After setting up twit with that information, we’re ready to start tweeting.
  25. But before we start tweeting we have to figure out what we’re going to tweet.
  26. So remember when you were in school, to learn the basics of grammar you would do mad-libs where you would have to fill out the blanks in a story? Well that’s what we’re going to do with this twitter bot.
  27. We’re going to be replacing the nouns, adjectives and prepositions so it becomes something like
  28. THIS. And we do that using Tracery which is a tool for generating text.
  29. So brightspiral is a way of playing with tracery without any code. how Tracery works is that you provide it with replacement grammar. A replacement grammar takes a starting symbol, and replaces it with one of several rules. Replacement grammar -> origin Starting symbols (in hashes): name and occupation Rules for occupation: baker, wizard, soldier In this case the replacement grammar is origin. So here the starting symbols are ‘name’ and ‘occupation.’ The rules is the list you see after the symbol so for name the rules are Bertram.... And on the right you see the starting symbols have been replaced with one of their rules.
  30. How this would work in code would be that the replacement grammar would be in JSON format. At the top is the structure we’re trying to get. We’re generating from the verb onwards.
  31. flatten is a tracey method that actually generates the text. So if we generate the numbers randomly and concatenate everything we end with something like this:
  32. Some of my favs are "10 under 89 working unbearably until Food & Beverages" and "3 under 55 working happily minus Military."
  33. And then back to the tweeting, this is how you post a tweet using twit. This is the easy part, methods for tweeting, replying, liking are all available in the twit documentation and you can just copy and paste which is what I did.
  34. Now all that’s left is to schedule tweeting. We can use a free service called CronJob to do that. There are also others available like uptimerobot.
  35. And that’s it! Our bot is tweeting!
  36. And as a bonus, since svg is just structured text, you can also use tracery to create generative image bots. This one creates tiny spires.
  37. And this one auto generates fictional tropical paradises
  38. And both of those use cheapbotsdonequick.com which is something you can use to create bots without any programming!
  39. And if you do want to write code, there are a bunch of starter templates for making bots on glitch!