mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 15:31:13 -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):
|
def doPaste(self, description, paste):
|
||||||
try:
|
try:
|
||||||
|
description = description.split('/')[-1]
|
||||||
apikey = self.registryValue('pasteAPI')
|
apikey = self.registryValue('pasteAPI')
|
||||||
payload = {'description':description,'sections':[{'contents':paste}]}
|
payload = {'description':description,'sections':[{'contents':paste}]}
|
||||||
headers = {'X-Auth-Token':apikey}
|
headers = {'X-Auth-Token':apikey}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user