Make channel a independant class
This commit is contained in:
parent
4f3b4099eb
commit
301e23f9f6
3 changed files with 44 additions and 18 deletions
9
channel.py
Normal file
9
channel.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# coding=utf-8
|
||||
|
||||
class Channel:
|
||||
def __init__(self, node):
|
||||
self.node = node
|
||||
self.name = node["name"]
|
||||
self.password = node["password"]
|
||||
self.people = list()
|
||||
self.topic = ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue