From 8c774513171b59623ffb9c1ba12f5510a5343438 Mon Sep 17 00:00:00 2001 From: SmileyFace799 Date: Thu, 15 Aug 2024 21:12:34 +0200 Subject: [PATCH] Deleted java, added javascript --- .gitignore | 137 +++++++++++++++--- index.mjs | 8 + package.json | 15 ++ pom.xml | 34 ----- .../pvv/henrkgr/doorbellmatrixbot/Main.java | 7 - 5 files changed, 137 insertions(+), 64 deletions(-) create mode 100644 index.mjs create mode 100644 package.json delete mode 100644 pom.xml delete mode 100644 src/main/java/no/ntnu/pvv/henrkgr/doorbellmatrixbot/Main.java diff --git a/.gitignore b/.gitignore index 6c3fe5b..96088a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,29 +1,120 @@ -# ---> Java -# Compiled class file -*.class - -# Log file +# Logs +logs *.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* -# BlueJ files -*.ctxt +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json -# Mobile Tools for Java (J2ME) -.mtj.tmp/ +# Runtime data +pids +*.pid +*.seed +*.pid.lock -# Package Files # -*.jar -*.war -*.nar -*.ear -*.zip -*.tar.gz -*.rar +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* -replay_pid* +# Coverage directory used by tools like istanbul +coverage +*.lcov -# IntelliJ -.idea/ -.vscode/ \ No newline at end of file +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test +.env.production + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +hydrus-bot.json \ No newline at end of file diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..a8c9fdf --- /dev/null +++ b/index.mjs @@ -0,0 +1,8 @@ +import { + MatrixClient, + SimpleFsStorageProvider, + AutojoinUpgradedRoomsMixin, + RichRepliesPreprocessor +} from "matrix-bot-sdk"; + +console.log("owo"); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..3d75142 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "doorbell-matrix-bot", + "version": "1.0.0", + "description": "Matrix doorbell bot", + "main": "index.mjs", + "scripts": { + "test": "test" + }, + "repository": { + "type": "git", + "url": "https://git.pvv.ntnu.no/henrkgr/doorbell-matrix-bot" + }, + "author": "henrkgr", + "license": "ISC" +} diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 3d6e9ca..0000000 --- a/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - 4.0.0 - - no.ntnu.pvv.henrkgr - doorbell-matrix-bot - 1.0-SNAPSHOT - - - 21 - 21 - UTF-8 - - 1.9 - - - - - jitpack.io - https://jitpack.io - - - - - - com.github.Cosium - matrix-communication-client - ${matrix.version} - - - - \ No newline at end of file diff --git a/src/main/java/no/ntnu/pvv/henrkgr/doorbellmatrixbot/Main.java b/src/main/java/no/ntnu/pvv/henrkgr/doorbellmatrixbot/Main.java deleted file mode 100644 index 0a26967..0000000 --- a/src/main/java/no/ntnu/pvv/henrkgr/doorbellmatrixbot/Main.java +++ /dev/null @@ -1,7 +0,0 @@ -package no.ntnu.pvv.henrkgr.doorbellmatrixbot; - -public class Main { - public static void main(String[] args) { - System.out.println("Hello world"); - } -}