priyanshbalyan / discord-file-storage Goto Github PK
View Code? Open in Web Editor NEWA simple python script that uses a discord channel as a cloud file storage service
A simple python script that uses a discord channel as a cloud file storage service
Discord removes special characters on uploading a file to a channel. Currently the download command fails if uploaded file contains (
or )
.
To fix this define a new variable fileRegex = r'&|\+|\(|\)'
on line no. 223 in file fs.py
and replace the first parameter of re.sub with it on line no. 226 i.e. replace re.sub(r'&|\+', '', file['filename'])
with re.sub(fileRegex, '', file['filename'])
Claim this issue first by commenting here to prevent multiple people working on the same issue.
Raise a PR with a description that says Fixes #6
Step for completing the task:
Leave a star if you like the project!
Add comment #Add your discord bot token here
just above the line TOKEN = ''
in file fs.py
Claim this issue first by commenting here to prevent multiple people working on the same issue.
Raise a PR with a description that says Fixes #8
Step for completing the task:
Leave a star if you like the project!
Add comment #Add your discord bot token here
just above the line TOKEN = ''
in file fs.py
Claim this issue first by commenting here to prevent multiple people working on the same issue.
Raise a PR with a description that says Fixes #2
Step for completing the task:
Leave a star if you like the project!
Add comment #Get size unit text from number of bytes
just above the getSizeFormat
function in file fs.py
Claim this issue first by commenting here to prevent multiple people working on the same issue.
Raise a PR with the description Fixes #4
Step for completing the task:
fs.py
Leave a star if you like the project!
Add comment #Add your discord channel id here
to line number 12 in file fs.py
Claim this issue first by commenting here to prevent multiple people working on the same issue.
Raise a PR with a description that says Fixes #1
Step for completing the task:
fs.py
Leave a star if you like the project!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.