Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules
*.log
.next
app
dist
dist
# Sentry
.sentryclirc
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
![image](https://user-images.githubusercontent.com/30301026/136669993-0219904e-c967-4b4f-8903-df43fb35f44b.png)

![React Badge](https://img.shields.io/badge/react%20-%2320232a.svg?&style=for-the-badge&logo=react&logoColor=%2361DAFB)

---
[![D](https://img.shields.io/badge/Join%20our%20Server%20-%237289DA.svg?&style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/Z7ybzt2KRr)

Welcome to Discord Bot Creator, a **free** open source discord bot creator which is much more powerful than current alternatives. Currently, it's still in development but you can check out the early version using the instructions below. Also feel free to join us on [Discord](https://discord.gg/yB4BnAHt).

Expand Down
7 changes: 4 additions & 3 deletions main/background.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import * as Sentry from '@sentry/electron';
import { app, globalShortcut, ipcMain, shell } from 'electron';
import serve from 'electron-serve';
import { createMenu, createWindow, Loader } from './helpers';
import './helpers/ipc';
import { addLog, getLogs } from './helpers/logs';

try {
require('electron-reloader')(module);
} catch (e) {}
Sentry.init({
dsn: 'https://c2f332451a0d4d9c8054ee6ff67405a9@o1252972.ingest.sentry.io/6419301',
});

const isProd = process.env.NODE_ENV === 'production';

Expand Down
26 changes: 26 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

const { withSentryConfig } = require('@sentry/nextjs');

const moduleExports = {
// Your existing module.exports
};

const sentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, org, project, authToken, configFile, stripPrefix,
// urlPrefix, include, ignore

silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
};

// Make sure adding Sentry options is the last code to run before exporting, to
// ensure that your source maps include changes from all other Webpack plugins
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions);
Loading