Skip to content

Commit

Permalink
Merge pull request #83 from Softawii/enhancement/removing_unused_feature
Browse files Browse the repository at this point in the history
feat: removing a lot of code pprt
  • Loading branch information
yaansz authored Oct 25, 2023
2 parents 051c0eb + 8bec744 commit 7fbd0c6
Show file tree
Hide file tree
Showing 30 changed files with 87 additions and 2,562 deletions.
84 changes: 84 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,81 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# Compiled class file
*.class

Expand All @@ -21,3 +99,9 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

build/*

.gradle/*
.idea/*
9 changes: 3 additions & 6 deletions src/main/java/com/softawii/capivara/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.softawii.capivara;

import com.softawii.capivara.core.*;
import com.softawii.capivara.listeners.CategoryGroup.TemplateGroup;
import com.softawii.capivara.core.DroneManager;
import com.softawii.capivara.core.EmbedManager;
import com.softawii.capivara.core.VoiceManager;
import com.softawii.capivara.listeners.EchoGroup;
import com.softawii.capivara.listeners.PackageGroup;
import com.softawii.capivara.listeners.VoiceGroup.Dynamic;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Activity;
Expand All @@ -28,10 +28,7 @@ public static void main(String[] args) {
LOGGER.info(buildProperties.getVersion() + " Bot is ready as " + jda.getSelfUser().getName());

// Beans
PackageGroup.packageManager = context.getBean(PackageManager.class);
EchoGroup.embedManager = context.getBean(EmbedManager.class);
PackageGroup.embedManager = EchoGroup.embedManager;
TemplateGroup.templateManager = context.getBean(TemplateManager.class);
Dynamic.voiceManager = context.getBean(VoiceManager.class);
Dynamic.droneManager = context.getBean(DroneManager.class);
}
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/com/softawii/capivara/config/SpringConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.softawii.capivara.config;

import com.softawii.capivara.listeners.CategoryGroup.TemplateGroup;
import com.softawii.capivara.listeners.PackageGroup;
import com.softawii.capivara.listeners.events.VoiceEvents;
import com.softawii.capivara.utils.CapivaraExceptionHandler;
import com.softawii.curupira.core.Curupira;
Expand Down Expand Up @@ -72,8 +70,6 @@ public JDA jda(VoiceEvents voiceEvents) {
builder.setMemberCachePolicy(MemberCachePolicy.ALL);
builder.enableCache(CacheFlag.EMOJI, CacheFlag.ROLE_TAGS, CacheFlag.MEMBER_OVERRIDES, CacheFlag.STICKER);
builder.addEventListeners(
new PackageGroup.AutoCompleter(),
new TemplateGroup.AutoCompleter(),
voiceEvents
);
jda = builder.build();
Expand Down
Loading

0 comments on commit 7fbd0c6

Please sign in to comment.