Deleted java, added javascript

This commit is contained in:
Henrik Kjernmoen Gran 2024-08-15 21:12:34 +02:00
parent 5b070a20de
commit 8c77451317
5 changed files with 137 additions and 64 deletions

137
.gitignore vendored
View File

@ -1,29 +1,120 @@
# ---> Java # Logs
# Compiled class file logs
*.class
# Log file
*.log *.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# BlueJ files # Diagnostic reports (https://nodejs.org/api/report.html)
*.ctxt report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Mobile Tools for Java (J2ME) # Runtime data
.mtj.tmp/ pids
*.pid
*.seed
*.pid.lock
# Package Files # # Directory for instrumented libs generated by jscoverage/JSCover
*.jar lib-cov
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml # Coverage directory used by tools like istanbul
hs_err_pid* coverage
replay_pid* *.lcov
# IntelliJ # nyc test coverage
.idea/ .nyc_output
.vscode/
# 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

8
index.mjs Normal file
View File

@ -0,0 +1,8 @@
import {
MatrixClient,
SimpleFsStorageProvider,
AutojoinUpgradedRoomsMixin,
RichRepliesPreprocessor
} from "matrix-bot-sdk";
console.log("owo");

15
package.json Normal file
View File

@ -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"
}

34
pom.xml
View File

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>no.ntnu.pvv.henrkgr</groupId>
<artifactId>doorbell-matrix-bot</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<matrix.version>1.9</matrix.version>
</properties>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.Cosium</groupId>
<artifactId>matrix-communication-client</artifactId>
<version>${matrix.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -1,7 +0,0 @@
package no.ntnu.pvv.henrkgr.doorbellmatrixbot;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world");
}
}