Giter Club home page Giter Club logo

sm-discord-bot's Introduction

sm-discord-bot

SpiderMonkey shell via Discord

Usage

  1. Run npm ci --omit=dev
  2. Set the Discord bot token as "DISCORD_TOKEN" in the environment variable
  3. npm run start

sm-discord-bot's People

Contributors

cm-ayf avatar dependabot[bot] avatar inkohx avatar kagesakura avatar mogyuchi avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mogyuchi cm-ayf

sm-discord-bot's Issues

stdoutとstderrの統合を改善する

#82 でstdoutとstderrを統合して表示するようになりましたが,ここで言っていた

どうやらサンドボックス内ではconsole.errorが使えないようなので,標準エラーがあるならばそれはthrow由来であり

が嘘であり(標準エラーを出力する関数printErrが存在する),実際にはstdoutとstderrが混在し得ます.よって,#82での文字列を結合する実装は出力として適していません.

しかしながら,@wasmer/wasiでは標準出力と標準エラーはそれぞれを別々の文字列(ないしUint8Array)で得ることしかできず,stdoutとstderrを順番通りに結合することは不可能であるように見えます.

どうすれば……

Bug when i run the first cmd

[email protected] prepare
is-ci || husky install

sh: 1: is-ci: not found
sh: 1: husky: not found
npm notice
npm notice New major version of npm available! 8.19.2 -> 9.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 127
npm ERR! path /workspaces/sm-discord-bot
npm ERR! command failed
npm ERR! command sh -c -- is-ci || husky install

npm ERR! A complete log of this run can be found in:
npm ERR! /home/codespace/.npm/_logs/2022-12-31T14_18_50_096Z-debug-0.log

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • ⬆️ Update dependency @bjorn3/browser_wasi_shim to v0.2.19
  • ⬆️ Update dependency eslint-plugin-import to v2.29.1
  • ⬆️ Update Node.js to v20.11.0
  • ⬆️ Update dependency eslint to v8.56.0
  • ⬆️ Update actions/download-artifact action to v4
  • ⬆️ Update actions/upload-artifact action to v4
  • 🔐 Create all pending approval PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • node 20.10.0
github-actions
.github/workflows/docker.yml
  • actions/checkout v4
  • docker/metadata-action v5
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/login-action v3
  • docker/build-push-action v5
  • actions/upload-artifact v3
  • actions/download-artifact v3
  • docker/setup-buildx-action v3
  • docker/metadata-action v5
  • docker/login-action v3
.github/workflows/node.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @bjorn3/browser_wasi_shim 0.2.16
  • colors 1.4.0
  • dayjs 1.11.10
  • discord.js 14.14.1
  • @types/colors 1.2.1
  • eslint 8.55.0
  • eslint-config-prettier 9.0.0
  • eslint-plugin-import 2.29.0
  • husky 8.0.3
  • is-ci 3.0.1
  • lint-staged 15.2.0
  • prettier 3.0.3

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.