Skip to content

Instantly share code, notes, and snippets.

@dcsan
Last active December 27, 2016 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcsan/03d9698315cbb1a69063ff2611b5f718 to your computer and use it in GitHub Desktop.
Save dcsan/03d9698315cbb1a69063ff2611b5f718 to your computer and use it in GitHub Desktop.
bots.json
// keywords will trigger anywhere inside a block of text
const keywords = {
"spanish food": "I love Paella!",
"thai food": "I love TomYum soup!",
// you can have multiline texts
// surround it with backticks: ` ` (not single ' ' quotes )
"san francisco": `The Golden Gate City!
I love san francisco!
▶️ type help for more ℹ️
`
}
// these get posted randomly
// based on the total of the 'chance' field eg 10/total
const random = [
{
chance: 50, // 50/total = large chance of saying nothing
text: null
},
{
chance: 10,
text: "....."
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment