· 6 years ago · Dec 26, 2019, 09:31 PM
1@everyone
2**Alunity - Semi-Custom - A unique experience**
3```fix
4We're currently adding & revamping a bunch of content that the game already had.
5```
6**Discord Invite Competition:**
7```fix
8Alunity is hosting a big invite competition!
9There will be 5 winners for this contest:
10First Place: 100M 07 GP & 100$ of store credit on Alunity.
11Second Place: 50m 07 GP & 75$ of store credit on Alunity.
12Third Place: 25m 07 GP & 50$ of store credit on Alunity.
13Fourth and Fifth Place: 25$ of store credit on Alunity.
14```
15**Some of our outstanding features:**
16```fix
17- Osrs & Pre-eoc content
18- Unique boss event system
19- Unique tournament system
20- Incredible interfaces
21- Crate opening system
22- Amazing combat system
23- Well balanced economy
24- Competitive highscores
25- Helpful staff team
26& much more!
27```
28
29**Our thread: https://www.rune-server.ee/runescape-development/rs2-server/projects/689911-alunity-semi-custom-unique-experience.html#post5668481**
30**Our Discord: https://discord.gg/h4cKgZX**
31
32**Media:**
33**https://i.imgur.com/QjtxsnL.png**
34**https://i.imgur.com/BALju9W.mp4**
35**https://i.imgur.com/ZOhhBPt.mp4**
36**https://i.imgur.com/z7fSBpV.gif**
37
38
39
40-------------------------------------------------------------------------------------
41
42
43
44
45package com.ruse.tools.discord;
46
47import java.text.DateFormat;
48import java.text.SimpleDateFormat;
49import java.util.Date;
50import java.util.concurrent.Executors;
51import java.util.concurrent.ScheduledExecutorService;
52import java.util.concurrent.TimeUnit;
53
54import org.javacord.api.AccountType;
55import org.javacord.api.DiscordApi;
56import org.javacord.api.DiscordApiBuilder;
57
58/**
59 *
60 * @author Adam_#6723
61 * @date 06/07/2019
62 * @project Tyras RSPS
63 */
64
65public class DiscordAdvertisementBot {
66 public static void main(String[] args) {
67
68 Thread thread = new Thread(new Runnable() {
69 @Override
70 public void run() {
71 try {
72 getDiscord();
73 System.err.println("Sending messages");
74 } catch (InterruptedException e) {
75 e.printStackTrace();
76 }
77 }
78 }, "Advertisement");
79 System.err.println("Executing down thread");
80 ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
81 scheduler.scheduleAtFixedRate(thread, 0, 60, TimeUnit.SECONDS);
82 }
83
84 public static String getMessage(String utm) {
85 return "https://media.discordapp.net/attachments/609448995697197091/611058552412438528/unknown.png?width=400&height=241"+NEW_LINE+NEW_LINE+
86 BOLD + "Tyras RSPS" + BOLD + NEW_LINE + NEW_LINE
87 + "Tyras RSPS has been in non-stop development for the past few months, with a goal of providing the Ultimate Custom RSPS Experience."
88 + NEW_LINE + BOLD + "Website: " + BOLD + " http://tyras.io" + NEW_LINE + BOLD + "Discord: "
89 + BOLD + " https://discord.gg/BRSj7b7" + NEW_LINE + NEW_LINE + "Notable Features:" + NEW_LINE + NEW_LINE
90 + "Tyras is also hosting a 100 Mill OSRS Discord Invite Competition! Join the discord for more information on how to win 100 Mill OSRS" + NEW_LINE
91 + EMBED_START + NEW_LINE + "� #1 Semi-Custom RSPS With 70+ Online!" + NEW_LINE + "� Droprate system (right click option)" + NEW_LINE
92 + "� Custom minigames ( Key Minigame and Penguin Multiplier minigame)" + NEW_LINE
93 + "� Item upgrading & invention" + NEW_LINE + "� Constant daily updates" + NEW_LINE
94 + "� Daily server-wide events" + NEW_LINE + "� Stunning User Interfaces" + NEW_LINE
95 + "� 24 skills working- They can all max to level 120" + NEW_LINE
96 + "� Prestiging skills and total prestige ranks" + NEW_LINE
97 + "� Custom tiers zones (There are up to 6 tiers)" + NEW_LINE + "� Boss pets and drop rate pets"
98 + NEW_LINE + " " + " Here's Images of some of the content Tyras RSPS Offers!"
99 + EMBED_END + NEW_LINE + "https://i.imgur.com/YdmuBLx.png" + NEW_LINE
100 + "https://i.imgur.com/0usT7by.png" + NEW_LINE + "https://i.imgur.com/YZ9XpUe.png" + NEW_LINE
101 + "https://i.imgur.com/bFZWqkz.png" + NEW_LINE + "https://i.imgur.com/fWuDDPr.png" + NEW_LINE
102 + "https://i.imgur.com/LlkXEcX.png" + NEW_LINE + "https://i.imgur.com/YZ9XpUe.png" + NEW_LINE
103 + "https://i.imgur.com/VbG2Dq3.png" + NEW_LINE;
104
105 }
106
107
108
109 private final static String NEW_LINE = "\n";
110 private final static String EMBED_START = "```diff";
111 private final static String EMBED_END = "```";
112 private final static String BOLD = "***";
113
114 private static String getYoutubeMessageTest() {
115 DateFormat simple = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
116 Date result = new Date(System.currentTimeMillis());
117 return "Timestamp: [" + simple.format(result) + "] Sending advertisement messages";
118 }
119
120 private static DiscordApi api = new DiscordApiBuilder().setAccountType(AccountType.CLIENT)
121 .setToken("YOUR BOT KEY").login().join();
122
123 private static void getDiscord() throws InterruptedException {
124 try {
125 System.err.println("Sending...post statuss");
126 api.getTextChannelById("476778037728378890").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
127 api.getTextChannelById("514841627211202597").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
128 api.getTextChannelById("548286930023088132").ifPresent(channel -> channel.sendMessage(getMessage("gambinos")).join());
129
130 api.getTextChannelById("431129570528460814").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
131 api.getTextChannelById("472234100737048578").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
132 api.getTextChannelById("559358120690712576").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
133 api.getTextChannelById("590727177327345675").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
134 api.getTextChannelById("434672806945488896").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
135 api.getTextChannelById("411777148911878144").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
136 api.getTextChannelById("300923473721819136").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
137 api.getTextChannelById("518800590285963275").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
138 api.getTextChannelById("344193244575301654").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
139 api.getTextChannelById("475778833727881224").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
140 api.getTextChannelById("552011745837973514").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
141 api.getTextChannelById("594620154445561916").ifPresent(channel -> channel.sendMessage(getMessage("stable")).join());
142 api.getTextChannelById("580680154020446208").ifPresent(channel -> channel.sendMessage(getMessage("Gambinos")).join());
143 api.getTextChannelById("552011745837973514").ifPresent(channel -> channel.sendMessage(getMessage("Gambinos")).join());
144 api.getTextChannelById("553869008768729089").ifPresent(channel -> channel.sendMessage(getMessage("RevonPK")).join());
145 api.getTextChannelById("494019314983239681").ifPresent(channel -> channel.sendMessage(getMessage("Youtube-Community")).join());
146 api.getTextChannelById("448972532599488514").ifPresent(channel -> channel.sendMessage(getMessage("Wr3ckedYou")).join());
147 api.getTextChannelById("546995316008681472").ifPresent(channel -> channel.sendMessage(getMessage("VoltageX")).join());
148 api.getTextChannelById("569595585783660545").ifPresent(channel -> channel.sendMessage(getMessage("Vice-Club")).join());
149 api.getTextChannelById("571116388924522499").ifPresent(channel -> channel.sendMessage(getMessage("Swarm-Public")).join());
150 api.getTextChannelById("590025633967374336").ifPresent(channel -> channel.sendMessage(getMessage("Sirtuana")).join());
151 api.getTextChannelById("484062036179943446").ifPresent(channel -> channel.sendMessage(getMessage("Random-disc")).join());
152 api.getTextChannelById("361792490690445314").ifPresent(channel -> channel.sendMessage(getMessage("Runesuite")).join());
153 api.getTextChannelById("361792490690445314").ifPresent(channel -> channel.sendMessage(getMessage("Rune-blocks")).join());
154 api.getTextChannelById("514841627211202597").ifPresent(channel -> channel.sendMessage(getMessage("RSPSCommunity")).join());
155 api.getTextChannelById("431129570528460814").ifPresent(channel -> channel.sendMessage(getMessage("RSPSHub")).join());
156 api.getTextChannelById("472234100737048578").ifPresent(channel -> channel.sendMessage(getMessage("RSPSGang")).join());
157 api.getTextChannelById("559358120690712576").ifPresent(channel -> channel.sendMessage(getMessage("rspscom")).join());
158 api.getTextChannelById("296213235453919232").ifPresent(channel -> channel.sendMessage(getMessage("RSPSHub")).join());
159 api.getTextChannelById("434672806945488896").ifPresent(channel -> channel.sendMessage(getMessage("RSPSCentral")).join());
160 api.getTextChannelById("411777754548273152").ifPresent(channel -> channel.sendMessage(getMessage("rsps")).join());
161 api.getTextChannelById("300923473721819136").ifPresent(channel -> channel.sendMessage(getMessage("rsgaming")).join());
162
163 api.getTextChannelById("518800590285963275").ifPresent(channel -> channel.sendMessage(getMessage("Pontus")).join());
164
165 api.getTextChannelById("472031068883779604").ifPresent(channel -> channel.sendMessage(getMessage("peephibe")).join());
166
167 api.getTextChannelById("591030334275977227").ifPresent(channel -> channel.sendMessage(getMessage("frimbs")).join());
168
169 api.getTextChannelById("344193244575301654").ifPresent(channel -> channel.sendMessage(getMessage("flop")).join());
170
171 api.getTextChannelById("475778833727881224").ifPresent(channel -> channel.sendMessage(getMessage("didy")).join());
172
173 api.getTextChannelById("552011745837973514").ifPresent(channel -> channel.sendMessage(getMessage("carnage")).join());
174
175 api.getTextChannelById("493494423607443471").ifPresent(channel -> channel.sendMessage(getMessage("")).join());
176
177 api.getTextChannelById("553869008768729089").ifPresent(channel -> channel.sendMessage(getMessage("")).join());
178
179 api.getTextChannelById("548274541605158924").ifPresent(channel -> channel.sendMessage(getMessage("")).join());
180
181
182
183 } catch (Exception e) {
184 e.printStackTrace();
185 }
186 }
187}