Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Mar 26, 2024
1 parent 21776c2 commit edfb07a
Show file tree
Hide file tree
Showing 18 changed files with 526 additions and 99 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
cache: "npm"
- name: npm Clean Install
run: npm ci
- name: Test JSON Files
run: node test/validate-json.js
- name: Test Orion Source Files
run: |
npm i --include=dev
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/data/cookies/*
/build/*
/log/*
/data/*
.env
package-lock.json
300 changes: 299 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,299 @@
# project-orion
# project-orion
Hello, World

# Pre-requisites
- Install [Node.js](https://nodejs.org/en/) version 20.x.x

# Getting started
- Fork the repository
Click https://github.com/mrepol742/project-orion/fork
- Clone fork the repository
```
_> using https
git clone https://github.com/<your-username>/project-orion
_> using ssh
git clone [email protected]:<your-username>/project-orion
```
- Install dependencies
```
cd project-orion && npm i
```
- Run the project
```
npm run start
```
<br>
This are the following commands available on this chatbot.

⋆。° ^@^C^A>^D^A^@^P^C^AL
<br>│
<br>│ ⦿ apikey
<br>│ ⦿ autoMarkDelivery
<br>│ ⦿ autoMarkRead
<br>│ ⦿ autoReaction
<br>│ ⦿ block --bot
<br>│ ⦿ block --thread
<br>│ ⦿ block --thread --tid
<br>│ ⦿ block --user
<br>│ ⦿ changeBio
<br>│ ⦿ clear --thread-lock
<br>│ ⦿ fontIgnore
<br>│ ⦿ handleFriendRequest
<br>│ ⦿ handleMessageRequest
<br>│ ⦿ handleMessageRequest --tid
<br>│ ⦿ leaveThread
<br>│ ⦿ left
<br>│ ⦿ logout
<br>│ ⦿ maintenance
<br>│ ⦿ mirrorReaction
<br>│ ⦿ notify
<br>│ ⦿ nsfw
<br>│ ⦿ online
<br>│ ⦿ remove --user
<br>│ ⦿ reset --thread-lock
<br>│ ⦿ resume
<br>│ ⦿ selfListen
<br>│ ⦿ state --refresh
<br>│ ⦿ state --save
<br>│ ⦿ stop
<br>│ ⦿ typingIndicator
<br>│ ⦿ unblock --thread
<br>│ ⦿ unblock --thread
<br>│ ⦿ unblock --user
<br>│ ⦿ unsend
<br>│ ⦿ unsendMessages
<br>│ ⦿ add --admin
<br>│ ⦿ add --token
<br>│ ⦿ block --command
<br>│ ⦿ clear --cache
<br>│ ⦿ clear --dup-data
<br>│ ⦿ cors --add
<br>│ ⦿ cors --rem
<br>│ ⦿ delayMessages
<br>│ ⦿ destroy
<br>│ ⦿ insertData
<br>│ ⦿ maxImage
<br>│ ⦿ maxTokens
<br>│ ⦿ penalty
<br>│ ⦿ penalty --frequency
<br>│ ⦿ penalty --presence
<br>│ ⦿ probabilityMass
<br>│ ⦿ push
<br>│ ⦿ push --force
<br>│ ⦿ remove --admin
<br>│ ⦿ restart
<br>│ ⦿ setKey
<br>│ ⦿ shell
<br>│ ⦿ simultaneousExec
<br>│ ⦿ sync
<br>│ ⦿ temperature
<br>│ ⦿ textComplextion
<br>│ ⦿ unblock --all
<br>│ ⦿ unblock --command
<br>│ ⦿ unblock --everyone
<br>│ ⦿ webApi
<br>│ ⦿ zdasfsfsf
<br>│ ⦿ zfegbgege
<br>│ ⦿ zsgeshrhewheh
<br>│ ⦿ zsvdvdvdvdv
<br>│ ⦿ zszszszszszsz
<br>│ ⦿ zzzzzzz
<br>│ ⦿ @everyone
<br>│ ⦿ 1v1
<br>│ ⦿ 8ball
<br>│ ⦿ add --instance
<br>│ ⦿ add --user
<br>│ ⦿ advert
<br>│ ⦿ aes --encrypt
<br>│ ⦿ ai
<br>│ ⦿ alert
<br>│ ⦿ anime
<br>│ ⦿ ascii
<br>│ ⦿ ascii --random
<br>│ ⦿ balance
<br>│ ⦿ balance --transfer
<br>│ ⦿ balance --user
<br>│ ⦿ barrier
<br>│ ⦿ base64 --decode
<br>│ ⦿ base64 --encode
<br>│ ⦿ baybayin
<br>│ ⦿ bb
<br>│ ⦿ binary --decode
<br>│ ⦿ binary --encode
<br>│ ⦿ bite
<br>│ ⦿ blur
<br>│ ⦿ blush
<br>│ ⦿ car
<br>│ ⦿ caution
<br>│ ⦿ chad
<br>│ ⦿ chatgpt
<br>│ ⦿ christmas
<br>│ ⦿ clown
<br>│ ⦿ cmd
<br>│ ⦿ codex
<br>│ ⦿ coding
<br>│ ⦿ coinflip
<br>│ ⦿ communist
<br>│ ⦿ conan
<br>│ ⦿ count
<br>│ ⦿ count --consonants
<br>│ ⦿ count --vowels
<br>│ ⦿ covid --global
<br>│ ⦿ createImageVariation
<br>│ ⦿ cringe
<br>│ ⦿ cuddle
<br>│ ⦿ decrypt
<br>│ ⦿ dell
<br>│ ⦿ dictionary
<br>│ ⦿ dns4
<br>│ ⦿ dns6
<br>│ ⦿ drake
<br>│ ⦿ drip
<br>│ ⦿ dyk
<br>│ ⦿ facts
<br>│ ⦿ facts --date
<br>│ ⦿ facts --math
<br>│ ⦿ facts --meow
<br>│ ⦿ facts --trivia
<br>│ ⦿ facts --year
<br>│ ⦿ fbdl
<br>│ ⦿ fbi
<br>│ ⦿ friendlist
<br>│ ⦿ getHeaders
<br>│ ⦿ getImage
<br>│ ⦿ getProfilePic
<br>│ ⦿ gid
<br>│ ⦿ git
<br>│ ⦿ github
<br>│ ⦿ gphoto
<br>│ ⦿ gpt
<br>│ ⦿ greyscale
<br>│ ⦿ group
<br>│ ⦿ gun
<br>│ ⦿ hanime
<br>│ ⦿ headpat
<br>│ ⦿ highfive
<br>│ ⦿ hug
<br>│ ⦿ image
<br>│ ⦿ image --bgremove
<br>│ ⦿ image --reverse
<br>│ ⦿ imdb
<br>│ ⦿ itunes
<br>│ ⦿ jail
<br>│ ⦿ joke
<br>│ ⦿ jokeover
<br>│ ⦿ kick
<br>│ ⦿ kill
<br>│ ⦿ kiss
<br>│ ⦿ lick
<br>│ ⦿ list --admin
<br>│ ⦿ list --instance
<br>│ ⦿ list --owner
<br>│ ⦿ lovetest
<br>│ ⦿ lulcat
<br>│ ⦿ lyric
<br>│ ⦿ mal
<br>│ ⦿ mdl
<br>│ ⦿ melbin
<br>│ ⦿ meme
<br>│ ⦿ misaka
<br>│ ⦿ mj
<br>│ ⦿ mock
<br>│ ⦿ morse
<br>│ ⦿ music
<br>│ ⦿ music --lyric
<br>│ ⦿ music --search
<br>│ ⦿ mute
<br>│ ⦿ nba
<br>│ ⦿ newyear
<br>│ ⦿ npm
<br>│ ⦿ nraf
<br>│ ⦿ nslookup
<br>│ ⦿ oogway
<br>│ ⦿ openai
<br>│ ⦿ owner
<br>│ ⦿ pair
<br>│ ⦿ pair --random
<br>│ ⦿ periodicTable
<br>│ ⦿ pet
<br>│ ⦿ pickuplines
<br>│ ⦿ pika
<br>│ ⦿ pin --add
<br>│ ⦿ pin --remove
<br>│ ⦿ ping
<br>│ ⦿ poli
<br>│ ⦿ pooh
<br>│ ⦿ qoute
<br>│ ⦿ qrcode
<br>│ ⦿ query.replace( --
<br>│ ⦿ quiz
<br>│ ⦿ rcolor
<br>│ ⦿ reverseText
<br>│ ⦿ run
<br>│ ⦿ sadcat
<br>│ ⦿ say
<br>│ ⦿ say --jap
<br>│ ⦿ screenshot
<br>│ ⦿ search
<br>│ ⦿ search --dnt
<br>│ ⦿ sendReport
<br>│ ⦿ setAddress
<br>│ ⦿ setBirthday
<br>│ ⦿ setGender
<br>│ ⦿ setNickname
<br>│ ⦿ setNickname --random
<br>│ ⦿ setTimezone
<br>│ ⦿ setUsername
<br>│ ⦿ ship
<br>│ ⦿ sim
<br>│ ⦿ skynet
<br>│ ⦿ slap
<br>│ ⦿ smug
<br>│ ⦿ stalk
<br>│ ⦿ stats
<br>│ ⦿ status
<br>│ ⦿ steam
<br>│ ⦿ sysinfo
<br>│ ⦿ test
<br>│ ⦿ thoughts
<br>│ ⦿ thread --emoji
<br>│ ⦿ thread --theme
<br>│ ⦿ tid
<br>│ ⦿ time
<br>│ ⦿ time --timezone
<br>│ ⦿ tokens
<br>│ ⦿ top
<br>│ ⦿ top --global
<br>│ ⦿ top --quiz
<br>│ ⦿ totext
<br>│ ⦿ traceroute
<br>│ ⦿ translate
<br>│ ⦿ tts --disable
<br>│ ⦿ tts --enable
<br>│ ⦿ ugly
<br>│ ⦿ ugly --random
<br>│ ⦿ uid
<br>│ ⦿ uncover
<br>│ ⦿ unforgivable
<br>│ ⦿ unmute
<br>│ ⦿ uptime
<br>│ ⦿ urlShortener
<br>│ ⦿ verse --random
<br>│ ⦿ verse --today
<br>│ ⦿ video
<br>│ ⦿ video --lyric
<br>│ ⦿ video --search
<br>│ ⦿ wallpaper --land
<br>│ ⦿ wallpaper --land --random
<br>│ ⦿ wallpaper --port
<br>│ ⦿ wallpaper --port --random
<br>│ ⦿ wanted
<br>│ ⦿ wave
<br>│ ⦿ weather
<br>│ ⦿ wfind
<br>│ ⦿ wiki
<br>│ ⦿ wink
<br>│ ⦿ wouldYourRather
<br>│
└─ @ỹ@cmd-prj- orion
58 changes: 57 additions & 1 deletion data/accountPreferences.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion data/groups.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion data/threadPreferences.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion data/users.json

Large diffs are not rendered by default.

36 changes: 16 additions & 20 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
/*
*
* Copyright (c) 2023 Melvin Jones Repol (mrepol742.github.io). All Rights Reserved.
*
* License under the Mrepol742 License, version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/mrepol742/Mrepol742-the-License
*
* Unless required by the applicable law or agreed in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is part of Project Orion.
*
* Orion is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License
*
* Orion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Orion. If not, see <https://www.gnu.org/licenses/>.
*
*/

require('dotenv').config();
Expand Down Expand Up @@ -55,9 +54,9 @@ for (let folder in folder_dir) {
writeFolder(__dirname + folder_dir[folder]);
}

let data_json = ["groups", "pin", "accountPreferences", "threadPreferences", "users"];
let data_json = ["groups", "accountPreferences", "threadPreferences", "users"];
for (let file in data_json) {
writeFile(__dirname + "/data/" + data_json[file] + ".json", "{}");
writeFile(__dirname + "/data/" + data_json[file] + ".json", fs.readFileSync(__dirname + "/src/data/default/" + data_json[file] + ".json", "utf8"));
}

/*
Expand Down Expand Up @@ -117,17 +116,14 @@ const pictographic = /\p{Extended_Pictographic}/gu;
const latinC = /[^a-z0-9\s]/gi;
const normalize = /[\u0300-\u036f|\u00b4|\u0060|\u005e|\u007e]/g;

/*
* CREATE SERVER
*/

/*
const LOG_PORT = process.env.LOG_PORT || 3001;
http.createServer(getLogs()).listen(LOG_PORT, () => {
utils.logged("log_server_running http://localhost:" + LOG_PORT);
});
*/


deleteCacheData(true);


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"nodemon": "^3.0.2"
},
"engines": {
"node": ">=18.x"
"node": ">=20.x"
}
}
Loading

0 comments on commit edfb07a

Please sign in to comment.