Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ddc3f83
Create node.js.yml
FordFriedel Apr 4, 2022
aefcf90
change node version test
FordFriedel Apr 5, 2022
b61cee8
no test
FordFriedel Apr 5, 2022
44290a8
testing
FordFriedel Apr 5, 2022
7a8723f
test readme
FordFriedel Apr 5, 2022
32b1810
discordfix
FordFriedel Apr 5, 2022
93945a3
change server id
FordFriedel Apr 5, 2022
e15da6a
discord icon test
FordFriedel Apr 5, 2022
a9dd84f
more readme updates
FordFriedel Apr 6, 2022
96d0862
readme changes
FordFriedel Apr 7, 2022
80afab6
more readme
FordFriedel Apr 7, 2022
a628472
spelling
FordFriedel Apr 9, 2022
63ebbc0
md experiments
FordFriedel Apr 9, 2022
1a76167
extra space
FordFriedel Apr 9, 2022
66a44e7
Create LICENSE
FordFriedel Apr 9, 2022
e1d2dd0
Merge pull request #49 from Paris-Developers/add-license-swagger
CPhantasm Apr 9, 2022
f167803
Hyperlink test
FordFriedel Apr 9, 2022
d903e59
Whitespace test
FordFriedel Apr 9, 2022
9ed5d09
shield
FordFriedel Apr 9, 2022
16767f4
whitespace test 2
FordFriedel Apr 9, 2022
57d72a3
Readme changes
FordFriedel Apr 12, 2022
90e24d6
test bullet points
FordFriedel Apr 12, 2022
8ccc9e4
Merge branch 'main' into jestTesting
FordFriedel Apr 15, 2022
30c3469
jest commit
FordFriedel Apr 15, 2022
5d4afbb
Merge branch 'Continuous-Integration' into jestTesting
FordFriedel Apr 15, 2022
c9c3180
changes to node.js.yml
FordFriedel Apr 15, 2022
a4dde0d
change to npm ci
FordFriedel Apr 15, 2022
a6bb4f7
update package
FordFriedel Apr 15, 2022
eaece6f
blocks ./coverage/ from github
FordFriedel Apr 15, 2022
277c7f1
Delete coverage directory
FordFriedel Apr 15, 2022
e9ddbda
Properly disables coverage
FordFriedel Apr 15, 2022
c7503f9
remove --coverage
FordFriedel Apr 15, 2022
7e08b79
I think this test will fail!
FordFriedel Apr 18, 2022
42bfae0
I believe this test will pass!
FordFriedel Apr 18, 2022
3836403
spelling
FordFriedel Apr 18, 2022
edcbed2
broken commit
FordFriedel Apr 20, 2022
50fac71
Start setting up mock enviornment for interactions
FordFriedel Apr 21, 2022
44d3589
interaction create start
FordFriedel Apr 21, 2022
7feb533
changes to testing enviornment
FordFriedel May 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.13.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test --if-present
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
config.json
node_modules/
package-lock.json
data/
local_files/
mirror.flp
logs/
built/
.prettierrc
.prettierrc
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Ford Friedel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
52 changes: 49 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,59 @@
# Mirror TS
<img align="left" width="auto" height="90" src="./docs/images/thumbnail128x128.png">

Mirror is an informational Discord bot.
[![Join us on Discord](https://img.shields.io/discord/938519232155648011.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/uvdg2R5PAU)

Mirror was created by Fordle#0001 and Phantasm#0001
[![MIT License](https://img.shields.io/badge/license-MIT-informational.svg)](./LICENSE)


# About Mirror

Mirror is a multi-purpose Discord bot which provides fun, immersive and informative features for your discord server at no cost.

Mirror is a for fun personal project for learning programming and computer science concepts through TypeScript, GitHub and the Discord API.

Mirror was created by Fordle#0001 and Phantasm#0001, with contributions from our friends.

## Essential Commands

### Introthemes

Set your introtheme with [`/intro`](src/slashcommands/Intro.ts) to play an audio clip everytime you join the chat channel!

Find a 10 second or shorter youtube video and paste the link into 'video' feild.

### Music Player

Mirror allows users to listen to songs and playlists from Spotify, Youtube and Soundcloud. Using [`/play`](src/slashcommands/Play.ts) or [`/playnext`](src/slashcommands/PlayNext.ts) you can search for songs or paste your own song or playlist and it will add it to the queue.

The Music functionality includes many commands:
- [x] [`/shuffle`](src/slashcommands/Shuffle.ts)
- [x] [`/loop`](src/slashcommands/Loop.ts)
- [x] [`/resume`](src/slashcommands/Resume.ts), [`/pause`](src/slashcommands/Pause.ts)
- [x] [`/queue`](src/slashcommands/Queue.ts), [`/clearqueue`](src/slashcommands/ClearQueue.ts)
- [x] [`/skip`](src/slashcommands/Skip.ts)
and more!

### Informative Commands

- [x] [`/weather`](src/slashcommands/Weather.ts) Current weather for a provided city.

- [x] [`/stock`](src/slashcommands/Stock.ts) Daily summaries for up to 10 provided tickers.

- [x] [`/nasa`](src/slashcommands/Nasa.ts) Display the NASA Astronomy Picture of the Day.

## Contributing to Mirror

Mirror is a public project and as such you are welcome to contribute if you desire.

If you want to work on Mirror with the team reach out to one of us on discord and we will get you started.

For more information on formatting and installing the bot read below:

[Contributing](docs/CONTRIBUTING.md)
[Building the bot](docs/BUILDING.md)
[APIs we use](docs/APIDOCUMENTATION.md)

## Aknowledgements



Binary file added docs/images/thumbnail128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: false,
};
Loading