Add callback setters
This commit is contained in:
parent
4242bcb144
commit
99285a06a9
1 changed files with 8 additions and 0 deletions
|
@ -50,4 +50,12 @@ class Tox
|
||||||
def on_friend_message(&block)
|
def on_friend_message(&block)
|
||||||
@on_friend_message = block
|
@on_friend_message = block
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def on_group_invite(&block)
|
||||||
|
@on_group_invite = block
|
||||||
|
end
|
||||||
|
|
||||||
|
def on_group_message(&block)
|
||||||
|
@on_group_message = block
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue