From 677471f5cccf9914d084c1f3d75c66583c9b7b61 Mon Sep 17 00:00:00 2001 From: lucaso60 Date: Sun, 15 Aug 2021 13:03:21 +0200 Subject: [PATCH] Initial commit --- .gitattributes | 2 + LICENSE | 22 +++++++ README.md | 45 ++++++++++++++ extensions/__init__.py | 0 .../__pycache__/__init__.cpython-39.pyc | Bin 0 -> 167 bytes .../on_start_screen.cpython-39.pyc | Bin 0 -> 2205 bytes extensions/on_start_screen.py | 49 +++++++++++++++ launcher.py | 57 ++++++++++++++++++ 8 files changed, 175 insertions(+) create mode 100644 .gitattributes create mode 100644 LICENSE create mode 100644 README.md create mode 100644 extensions/__init__.py create mode 100644 extensions/__pycache__/__init__.cpython-39.pyc create mode 100644 extensions/__pycache__/on_start_screen.cpython-39.pyc create mode 100644 extensions/on_start_screen.py create mode 100644 launcher.py diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8e4d242 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2021 lucaso60 +Copyright (c) 2015-present Rapptz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVUSER_IDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e3a7daf --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ + +# DiscordChannelSpammer + +--- +___ + +# LICENSE +MIT License + +Copyright (c) 2021 lucaso60 + +Copyright (c) 2015-present Rapptz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVUSER_IDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +_____ + +This code is using a library called discord.py by Copyright (c) 2015-present Rapptz, his project is also licensed under the MIT License. +Rapptz repository is in https://github.com/Rapptz/discord.py. +_______________ + +# How to use +- Download Python from python.org +- Install discord.py using pip: pip `install discord.py` / `pip3 install discord.py` +- Click and run the luancher.py. +- Remember to have a your bot TOKEN from https://discord.com/developers/applications +- Also remember that you have to get the channel USER_ID by turning on developer mode in discord in settings under advanced. +---- +# Contact +You can contact me at lucasoAlt@outlook.com. \ No newline at end of file diff --git a/extensions/__init__.py b/extensions/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/extensions/__pycache__/__init__.cpython-39.pyc b/extensions/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2eb5ec1f6001d2af64dd6db3110d79a7f6f9c71d GIT binary patch literal 167 zcmYe~<>g`kf@$x>6G8N25P=LBfgA@QE@lA|DGb33nv8xc8Hzx{2;!HIi&acOQGR++ zVs36`UV4m6YFTPdenD<(UP+95W{F2>l7gq7XGn~5Mq*xGYEEzgP+e+KOln0*YF=?> jeqM1*e0*kJW=VX!UP0w84x8Nkl+v73JCH4(ftUdR9>FTo literal 0 HcmV?d00001 diff --git a/extensions/__pycache__/on_start_screen.cpython-39.pyc b/extensions/__pycache__/on_start_screen.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4bac6dd9c36f40205922da4e4e6088e5226e8bc2 GIT binary patch literal 2205 zcmbVO!EW0|5S47Tbr;Q{=q1O2FR=mEN&>Wppa@D!ltok`1(J$ug8)O3D~koi6-X+s z1Ksj9MgPdxenM|O_03XJ(jW+ouE^!??97{)Hxftjqer5J@#o)<<8O~zt-pBl;W)tN zXWW&6DQ#W1()M**9?15)cDt1xTp!AVcdd2{l0%j>yY$d+op$1Gr_~Z;JD^dP$fA-$ z^wjFE%x)Gnog}C9{OR*&l&_PxQa?TwVj|0BR#llQD6428OF6rvn=&qHnHn@Nr6e_{ zWD%D)(x6&VT-?!0mK6-ttd6rHD{d&J1Wp7r>jhvcHLq{uQbIYUxT;i=#lWLfCF`Xu z>bPcq^DLJYozx3S$Ntvh_*6SdWt@ww0Gg!T5#46>Lal2mWmT71!Waf+MUt;mj$wD4 zXUlBsfz5U1l|ba{3K?*m1}#;Z&G{*HTC4Re&#Hw%X~xjAbq&pmg_=Tx^XRIQDw*d3 z2pQtmxxSB1>o7my2L87cRV=w(sO5h%$tp2lmjzsc6lkOhlxdH@$)sipM?P11u5LNC zL=|bq`BpE42yhh7)ElXDX$o7Y8lh^sbpdn`O;xu?)gsPwn#nC;@C$k&+NXo;*0ZWc z;j=iWl`6HrkJCJZ|Di>`I|wdK&m!BWiRZqW`j!{jeXCE$rVrt$gbf*D9%`=_g zirfL2&K3P)JAH$!UnidB`{a7U9#2NL1)1&iM$^9ST+lh}92Z|<8((CA1}?GJEtGA+ zZa`zp>kWZyp4%fkxH81R4jjfDxE`4_F}=X_06$) z!O?l-0>u-o)KxG3V|Mu9@2?gs|g;Fu@e6mIB=UcG*AunD^` zW)BTc2*i+1fXU%C$h_MtG>!z+F}j97IZ`lsQepV%_O#5Sh1x;Co^7k68pZi6qiU=?D ovW}_*y}USE-Q6Gkg!Z@2<;ynz#rOtO=W*w|qk~TS%l1+GUuBVBZ2$lO literal 0 HcmV?d00001 diff --git a/extensions/on_start_screen.py b/extensions/on_start_screen.py new file mode 100644 index 0000000..e475070 --- /dev/null +++ b/extensions/on_start_screen.py @@ -0,0 +1,49 @@ +""" +MIT License + +Copyright (c) 2021 lucaso60 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVUSER_IDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" + +logo = """ + _____ _ _ _____ __ __ +| __ \(_) | | __ \| \/ | +| | | |_ ___ ___ ___ _ __ __| | | | | \ / | +| | | | / __|/ __/ _ \| '__/ _` | | | | |\/| | +| |__| | \__ \ (_| (_) | | | (_| | |__| | | | | +|_____/|_|___/\___\___/|_| \__,_|_____/|_| |_| + + + _____ + / ____| +| (___ _ __ __ _ _ __ ___ _ __ ___ ___ _ __ + \___ \| '_ \ / _` | '_ ` _ \| '_ ` _ \ / _ \ '__| + ____) | |_) | (_| | | | | | | | | | | | __/ | +|_____/| .__/ \__,_|_| |_| |_|_| |_| |_|\___|_| + | | + |_| + +""" +print(logo) + +copyright = "Copyright (c) 2021 lucaso60, Copyright (c) 2015-present Rapptz" +print() +print(copyright) +print() \ No newline at end of file diff --git a/launcher.py b/launcher.py new file mode 100644 index 0000000..2be75c7 --- /dev/null +++ b/launcher.py @@ -0,0 +1,57 @@ +""" +MIT License + +Copyright (c) 2021 lucaso60 +Copyright (c) 2015-present Rapptz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVUSER_IDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" +import discord +from discord.ext import commands +from discord import * +from datetime import datetime +from time import sleep + +from extensions import on_start_screen + +def time_now(): + time = datetime.now() + current_time = time.strftime("%y-%m-%d %H:%M:%S") + now = current_time + " >" + return now + +TOKEN = input(f"{time_now()} Please input your bot token: ") + + +bot = commands.Bot(command_prefix=".") + +@bot.event +async def on_ready(): + print(f"{time_now()} Logged in as {bot.user}") + USER_ID = input(f"{time_now()} Please input USER ID: ") + MESSAGE = input(f"{time_now()} Please input the spam message: ") + user = await bot.fetch_user(USER_ID) + while True: + await user.send(MESSAGE) + print(f"{time_now()} Spammed {user} with {MESSAGE}") + sleep(0.8) + +bot.run(TOKEN) + +