Misc
Miscellanious classes and functions
Functions and classes that did not fit in another module S.D.G.
ClipUploader
Upload clips to Rumble automatically
Source code in rumchat_actor/misc.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
__init__(actor, clip_command, **kwargs)
Upload clips to Rumble automatically
Parameters:
Name | Type | Description | Default |
---|---|---|---|
actor
|
RumbleChatActor
|
The RumbleChatActor() instance |
required |
clip_command
|
ChatCommand
|
The clip command instance |
required |
channel_id
|
str | int
|
The name or int ID of the channel to upload to, defaults to no channel (user page) |
required |
Source code in rumchat_actor/misc.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
__upload_clip(name, complete_path)
Upload a clip to Rumble
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The base name of the clip. |
required |
complete_path
|
str
|
The full file path of the clip. |
required |
Source code in rumchat_actor/misc.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
clip_upload_loop()
Keep uploading clips while actor is alive
Source code in rumchat_actor/misc.py
73 74 75 76 77 78 79 80 81 |
|
upload_clip(name, complete_path)
Add the clip filename to the queue
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The base name of the clip. |
required |
complete_path
|
str
|
The full file path of the clip. |
required |
Source code in rumchat_actor/misc.py
43 44 45 46 47 48 49 |
|