csbot.plugins.helix module

class csbot.plugins.helix.Helix(bot)[source]

Bases: csbot.plugin.Plugin

The premier csbot plugin, allowing mere mortals to put questions to the mighty helix, and receive his divine wisdom.

Notes:
  • The popular online version basically just selects a random outcome, and saves it with a random url so that it can be reused if the same question is asked.
  • I’m lazy, so I’m just going to hash whatever the person puts in and mod the resulting value (taken from hex) to pick out an element of the outcomes list. That way if the same questions gets asked twice, it gets (hopefully) the same answer.
outcomes = ['It is certain', 'It is decidedly so', 'Without a doubt', 'Yes definitely', 'You may rely on it', 'As I see it, yes', 'Most likely', 'Outlook good', 'Yes', 'Signs point to yes', 'Reply hazy try again', 'Ask again later', 'Better not tell you now', 'Cannot predict now', 'Concentrate and ask again ', "Don't count on it", 'My reply is no', 'My sources say no', 'Outlook not so good', 'Very doubtful', 'no.', 'START', 'A', 'B', 'UP', 'DOWN', 'LEFT', 'RIGHT', 'SELECT', 'START', 'A', 'B', 'UP', 'DOWN', 'LEFT', 'RIGHT', 'SELECT']
setup()[source]

Plugin setup.

  • Replace all ProvidedByPlugin attributes.
  • Fire all plugin integration methods.
  • Register all commands provided by the plugin.
ask_the_almighty_helix(e)[source]

Ask and you shall recieve.