Module jumpscale.packages.polls.chats.foo
Expand source code
from jumpscale.sals.chatflows.polls import Poll
class Foo(Poll):
poll_name = "foo"
QUESTIONS = {
"What's your favorite movie?": ["Avengers", "Lord of the rings", "Harry Potter", "something else"],
"What's your favorite programing language?": ["Python", "Go", "Python bardo :P"],
"Did you like the vote?": ["Yes", "No", "maybe"],
}
chat = Foo
Classes
class Foo (*args, **kwargs)
-
Polls chatflow base just inherit from this class and override poll_name and QUESTIONS in your chatflow
Args
GedisChatBot
:Parent
- contains the chatflows sals main functions
Raises
j.core.exceptions.Runtime
- if wrong inheritance happens
StopChatFlow
- if payment is failed
Keyword Args any extra kwargs that is passed while creating the session (i.e. can be used for passing any query parameters)
Expand source code
class Foo(Poll): poll_name = "foo" QUESTIONS = { "What's your favorite movie?": ["Avengers", "Lord of the rings", "Harry Potter", "something else"], "What's your favorite programing language?": ["Python", "Go", "Python bardo :P"], "Did you like the vote?": ["Yes", "No", "maybe"], }
Ancestors
Class variables
var QUESTIONS
var poll_name
class chat (*args, **kwargs)
-
Polls chatflow base just inherit from this class and override poll_name and QUESTIONS in your chatflow
Args
GedisChatBot
:Parent
- contains the chatflows sals main functions
Raises
j.core.exceptions.Runtime
- if wrong inheritance happens
StopChatFlow
- if payment is failed
Keyword Args any extra kwargs that is passed while creating the session (i.e. can be used for passing any query parameters)
Expand source code
class Foo(Poll): poll_name = "foo" QUESTIONS = { "What's your favorite movie?": ["Avengers", "Lord of the rings", "Harry Potter", "something else"], "What's your favorite programing language?": ["Python", "Go", "Python bardo :P"], "Did you like the vote?": ["Yes", "No", "maybe"], }
Ancestors
Class variables
var QUESTIONS
var poll_name
Inherited members