mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
TextArt: shorten paste name
This commit is contained in:
parent
ff7cc0b24c
commit
0c363bd63c
@ -385,6 +385,7 @@ class TextArt(callbacks.Plugin):
|
||||
|
||||
def doPaste(self, description, paste):
|
||||
try:
|
||||
description = description.split('/')[-1]
|
||||
apikey = self.registryValue('pasteAPI')
|
||||
payload = {'description':description,'sections':[{'contents':paste}]}
|
||||
headers = {'X-Auth-Token':apikey}
|
||||
|
Loading…
x
Reference in New Issue
Block a user