A bot discord that can create directories, file, rename, move, navigate throw directories etc....

Overview

File Manager Discord

What is the purpose of this program ?

This program is made for a Discord bot. Its purpose is to organize the messages sent in a clear and structured way, thanks to files and directories. The whole database is made in XML. However, people do not interact directly with this database, but write commands on a channel, which are processed by the bot to interact with the XML file. The commands are simple and inspired by bash.

The commands

ls

As in bash, this command allows to see the files that are in the directory.

Syntax: ls

cd

As in bash, this command allows you to change of directory

Syntax: cd

cd..

cd.. is the equivalent of "cd .." in Bash

Syntax: cd..

mkdir

As in bash, this command allows you to make a new directory

Syntax: mkdir {name_of_the_dir}

mkdir

As in bash, this command allows you to make a new directory

Syntax: mkdir {name_of_the_dir}

home

This command allow user to come to the root of all the database. It's kind of a big cd..

Syntax: home

pwd

As in bash, this command allows you to get your current location. You can also see it with ls at the bottom

Syntax: pwd

touch

This command isn't the same as in Bash. This command creates a "file" (which is just a tag for the XML), and maps the ID of a discord message to it. If you don't understand the utility of that, you'll understand it with the next command c

Syntax: touch {name_of_the_file} {id_of_the_message}

c

The command c (see) allows user to see the "content" of a file. Because we created a file with the ID of a message in it, this command, will show the message that correspond to the ID

Syntax: c {name_of_the_file}

mdid

It is possible that the ID you entered is wrong. To change this id you can use the command mdid

Syntax: mdid {name_of_the_file} {new_id_of_the_message}

rm

You want to delete a file or a directory? No problem, the rm command allows you to do that

Syntax: mdid {type (dir or file)} {name}

rn

If you are mistaken about the name of a file and want to rename it you can use the command rn

Syntax: rn {type (dir or file)} {actual_name} > {new_name}

mv

You want to move a file or even a directory to another location? Use mv

Syntax: mv {type (dir or file)} {name_of_the_file_or_dir_you_want_to_mv} > {dir}

mv..

This command is the same as cd.. for cd but for mv. If you want to move a file or a directory to the directory before the one you are in, use mv.

Syntax: mv.. {type (dir or file)} {name_of_the_file_or_dir_you_want_to_mv}

help

This is the final command. This command can be used if you don't know what to do or if you don't know the use of a command and can be used in two ways

Just help

If you only write "help". You'll see the list of commands. (I added a (- ADMIN) for this example, but didnt implemented it)

Syntax: help

help + cmd

However, if you want to have more information about a command, you can write help + the command

Syntax : help {cmd}

Extensions I used

ETREE

The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data. This is normally already installed with Python. More information here: https://docs.python.org/3/library/xml.etree.elementtree.html

Discord

Since the bot is on Discord, we logically use Discord.py if you want to install it:

https://pypi.org/project/discord.py/

Documentation:

https://discordpy.readthedocs.io/en/latest/

Owner
Main: Python3 Also: HTML/CSS/JS C# C++
OneDriveExplorer - A command line and GUI based application for reconstructing the folder strucure of OneDrive from the UserCid.dat file

OneDriveExplorer - A command line and GUI based application for reconstructing the folder strucure of OneDrive from the UserCid.dat file

Brian Maloney 100 Dec 13, 2022
Instant Fuzzy File Search for Alfred

List all the files inside a folder using fd, and instantly fuzzy-search through all of them using fzf, all from inside Alfred with a single keyword: fzf.

Mr. Pennyworth 37 Nov 30, 2022
Test app for importing contact information in CSV files.

Contact Import TestApp Test app for importing contact information in CSV files. Explore the docs » · Report Bug · Request Feature Table of Contents Ab

1 Feb 06, 2022
PyDeleter - delete a specifically formatted file in a directory or delete all other files

PyDeleter If you want to delete a specifically formatted file in a directory or delete all other files, PyDeleter does it for you. How to use? 1- Down

Amirabbas Motamedi 1 Jan 30, 2022
Get Your TXT File Length !.

TXTLen Get Your TXT File Length !. Hi 👋 , I'm Alireza A Python Developer Boy 🔭 I’m currently working on my C# projects 🌱 I’m currently Learning CSh

Alireza Hasanzadeh 1 Jan 06, 2022
Python virtual filesystem for SQLite to read from and write to S3

Python virtual filesystem for SQLite to read from and write to S3

Department for International Trade 70 Jan 04, 2023
PaddingZip - a tool that you can craft a zip file that contains the padding characters between the file content.

PaddingZip - a tool that you can craft a zip file that contains the padding characters between the file content.

phithon 53 Nov 07, 2022
CSV-Handler written in Python3

CSVHandler This code allows you to work intelligently with CSV files. A file in CSV syntax is converted into several lists, which are combined in a to

Max Tischberger 1 Jan 13, 2022
Nintendo Game Boy music assembly files parser into musicxml format

GBMusicParser Nintendo Game Boy music assembly files parser into musicxml format This python code will get an file.asm from the disassembly of a Game

1 Dec 11, 2021
Better directory iterator and faster os.walk(), now in the Python 3.5 stdlib

scandir, a better directory iterator and faster os.walk() scandir() is a directory iteration function like os.listdir(), except that instead of return

Ben Hoyt 506 Dec 29, 2022
shred - A cross-platform library for securely deleting files beyond recovery.

shred Help the project financially: Donate: https://smartlegion.github.io/donate/ Yandex Money: https://yoomoney.ru/to/4100115206129186 PayPal: https:

4 Sep 04, 2021
Nmap XML output to CSV and HTTP/HTTPS URLS.

xml-to-csv-url Convert NMAP's XML output to CSV file and print URL addresses for HTTP/HTTPS ports. NOTE: OS Version Parsing is not working properly ye

1 Dec 21, 2021
OnedataFS is a PyFilesystem interface to Onedata virtual file system

OnedataFS OnedataFS is a PyFilesystem interface to Onedata virtual file system. As a PyFilesystem concrete class, OnedataFS allows you to work with On

onedata 0 Jan 10, 2022
A simple file module for creating, editing and saving files.

A simple file module for creating, editing and saving files.

1 Nov 25, 2021
A Certificate renaming tool made for IEEE CS SBC, SJCE.

PDF Batch Renamer Made for IEEE CS SBC, SJCE How to use? Before using the python script, ensure that pytesseract, pdf2image, opencv and other supporti

Ashwin Kumar U 2 Nov 14, 2021
Uncompress DEFLATE streams in pure Python

stream-inflate Uncompress DEFLATE streams in pure Python. Installation pip install stream-inflate Usage from stream_inflate import stream_inflate impo

Michal Charemza 7 Oct 13, 2022
Python module that parse power builder file (PBD) and analyze code

PowerBuilder-decompile Python module that parse power builder file (PBD) and analyze code (Incomplete) this tool is composed of: pbd_dump.py pbd file

Samy Sultan 8 Dec 15, 2022
File-manager - A basic file manager, written in Python

File Manager A basic file manager, written in Python. Installation Install Pytho

Samuel Ko 1 Feb 05, 2022
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".

the problem What directory should your app use for storing user data? If running on macOS, you should use: ~/Library/Application Support/AppName If

ActiveState Software 948 Dec 31, 2022
Provides a convenient way to append numpy arrays to a file.

Provides a convenient way to append numpy arrays to a file. The NpendWriter and NpendReader classes are used to write and read numpy arrays respective

3 May 14, 2022